+ Reply to Thread
Results 1 to 4 of 4

Excel VBA row export to multiple text files

  1. #1
    Registered User
    Join Date
    12-08-2011
    Location
    butler, PA
    MS-Off Ver
    Excel 2010
    Posts
    4

    Excel VBA row export to multiple text files

    1-2.txt1-3.txt1-4.txt1-1.txt1-5.txtHello
    I am trying to get excel to export a named row column 1, column2, and Column 3. column 3 is empty and used to create a blank line in the text file. the largest worksheet is 180 rows in length. The method I found that I have been able to use creates a macro of 2800 lines which creates an error because it is to long. So I am only able to create 40 text files at a time. hopefuly creating a range will be easier.

    I need to figure out how to do this as a range A1, B1 and aline break then the next 8 ranges A2, B9 preferable with a line break(space between lines)
    then the next .txt page range A2, B2 line break 8 ranges A1, B9

    Basicly the problem is for each seperate text i need to set the ranges because they are different on each page
    I have a small Working snippet of how I am currently exporting for review.

    Any help would be greatly appriciated


    Please Login or Register  to view this content.
    Last edited by warren13; 12-10-2011 at 11:23 AM.

  2. #2
    Registered User
    Join Date
    12-08-2011
    Location
    butler, PA
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Excel VBA row export to multiple text files

    Well I hope I have done that correctly I added notes to the code and created a larger example which would continue up to 180 text files are created. But VBA wont allow it to work for more than 40 text files because of how long it ends up
    Last edited by warren13; 12-10-2011 at 11:04 AM.

  3. #3
    Registered User
    Join Date
    12-08-2011
    Location
    butler, PA
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Excel VBA row export to multiple text files

    Never mind thanks for the help lolz ("post code in code blocks cause i can't read code thats not in a code block", ya you know who you are! way to delete your posts and hide as well (not the moderator he kindly explained the issue)). I solved the problem on my own.
    Last edited by warren13; 12-11-2011 at 01:16 AM.

  4. #4
    Forum Expert Mordred's Avatar
    Join Date
    07-06-2010
    Location
    Winnipeg, Canada
    MS-Off Ver
    2007, 2010
    Posts
    2,787

    Re: Excel VBA row export to multiple text files

    I deleted his post because you added code tags.

    Your post does not comply with Rule 9 of our Forum RULES. If you solve a problem yourself before anyone else has responded, please take a moment to describe your solution, chances are some other member will benefit. And please never edit a thread in which someone else has responded.
    If you're happy with someone's help, click that little star at the bottom left of their post to give them Reps.

    ---Keep on Coding in the Free World---

+ Reply to Thread

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