+ Reply to Thread
Results 1 to 6 of 6

Save rows as text file & name file from a cell

  1. #1
    Registered User
    Join Date
    03-30-2011
    Location
    Nebraska
    MS-Off Ver
    Excel 2007
    Posts
    3

    Save rows as text file & name file from a cell

    I am new here. I have seen similar questions asked here, but nothing exactly like this. Thank you for your consideration in answering this question.

    I have a rather large Excel file with two columns. Column 'A' has a number code, "1234567" for example. Column 'B' has a description, "H3WW8Y Widget Steel" for example.

    I want to export all of the column 'B' rows as separate text files and name them after column 'A'. So after the code is run (or formula), there would be a file called "1234567.txt". That "1234567.txt" file would contain "H3WW8Y Widget Steel".

    A______ B
    1 1234567 H3WW8Y Widget Steel
    2 1234568 A3WW8A Widget Steel
    3 1234569 B3WW8B Widget Steel
    4 1234570 C3WW8C Widget Steel

    Any assistance is appreciated! Thank you!
    Last edited by nebraska; 04-01-2011 at 05:40 PM.

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: Save rows as text file & name file from a cell

    Hi nebraska,

    I rarely say this, but it seems you are going to make your problem harder by splitting your data into separate text files. There must be a better way. If you could, please explain what the problem is and what you are trying to accomplish. I'm pretty sure we can help make this problem easier without needing to split your Excel data into a bunch of txt files.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Valued Forum Contributor
    Join Date
    09-21-2003
    Location
    British Columbia , Canada
    MS-Off Ver
    03,07,10,13
    Posts
    727

    Re: Save rows as text file & name file from a cell

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    03-30-2011
    Location
    Nebraska
    MS-Off Ver
    Excel 2007
    Posts
    3

    Thumbs up Re: Save rows as text file & name file from a cell

    Absolutely perfect Nimrod! Thank you!

  5. #5
    Registered User
    Join Date
    03-30-2011
    Location
    Nebraska
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Save rows as text file & name file from a cell

    Thank you for even looking at my problem MarvinP. Unfortunately my server is setup to expect an additional .txt file for extended descriptions. It was either ask this question or modify a perl parser. I chose this one because it was quicker.

  6. #6
    Valued Forum Contributor
    Join Date
    09-21-2003
    Location
    British Columbia , Canada
    MS-Off Ver
    03,07,10,13
    Posts
    727

    Re: Save rows as text file & name file from a cell

    Glad I could help ... thx for the feedback

+ 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