Results 1 to 10 of 10

Troubleshooting code for export to text file.

Threaded View

  1. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689
    If AppendData is false, you'll never open a file, yet the code continues. That's bad.

    I can't envision why you would set the row and column numbers as you do. And if SelectionOnly is not true, you wouldn't set them at all.

    Why do you have the OnError statement? The first step if you get errors is to find out why. Start by taking it out.

    Take out Application.ScreenUpdating = False too, until the code is stable.

    Edit: And in fairness to Chip, that code is modified substantially from the link. Did you try his code as-is?
    Last edited by shg; 10-31-2008 at 04:54 PM.
    Entia non sunt multiplicanda sine necessitate

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1