Closed Thread
Results 1 to 8 of 8

Save each row as a separate .txt file

  1. #1
    Registered User
    Join Date
    05-09-2011
    Location
    Belgium
    MS-Off Ver
    Excel 2010
    Posts
    5

    Save each row as a separate .txt file

    Hey,

    I am looking for a solution to save each row of my excel sheet as a separate .txt file at ones. I am not very familiar with macro's but I have the feeling that this is possible with a macro script.

    What I have:
    A B C D E F G etc
    1. text1 | cow | chicken | breakfast | diner | etc..
    2. text2 | cat | chicken | breakfast | dish | etc..
    3. text3 | dog | chicken | breakfast | warm meal | etc..

    In this case row A is the name of the text file (e.g. text1.txt) and all the other rows contain the information I would like to see horizontally (and separated with a space) in the text file.

    As output I want to create the following:
    D:\My Documents\text1.txt
    cow chicken breakfast diner etc..

    D:\My Documents\text2.txt
    cat chicken breakfast dish

    Anyone ideas?
    Last edited by MrZorakskeep; 05-12-2011 at 06:47 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    06-19-2010
    Location
    Holywell, N Wales, UK
    MS-Off Ver
    Excel 2013
    Posts
    470

    Re: Save each row as a separate .txt file

    Hi MrZorakskeep
    Welcome to the forum.
    The attached should get you going.
    barry
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    05-09-2011
    Location
    Belgium
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Save each row as a separate .txt file

    Hey Barryleajo! Thanks that was fast and it works great and easy!

  4. #4
    Valued Forum Contributor
    Join Date
    06-19-2010
    Location
    Holywell, N Wales, UK
    MS-Off Ver
    Excel 2013
    Posts
    470

    Re: Save each row as a separate .txt file

    Glad to be of assistance.
    Perhaps you would mark your thread as SOLVED.
    See rule 9 in the Forum Rules on how to do this

  5. #5
    Registered User
    Join Date
    06-13-2012
    Location
    Caracas
    MS-Off Ver
    Excel 2007
    Posts
    1

    Re: Save each row as a separate .txt file

    Thank you! it was useful for me too!

  6. #6
    Registered User
    Join Date
    02-13-2013
    Location
    North Carolina
    MS-Off Ver
    Excel 2010
    Posts
    1

    Re: Save each row as a separate .txt file

    I have downloaded the file and copied my information to the document, however I am lost on how to save each row as an individual text file. Please help as soon as you can. Step by step instructions would help. thanks

  7. #7
    Registered User
    Join Date
    07-06-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Save each row as a separate .txt file

    Is there a way to do this so that the cells from each row are tab-delimited in the txt file instead of separated by a space? Many thanks!

  8. #8
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Save each row as a separate .txt file

    Hi DerekLee1 & Welcome to the Forum,

    Unfortunately your post does not comply with Rule 2 of our Forum RULES. Do not post a question in the thread of another member -- start your own thread.

    If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.

    Old threads are often only monitored by the original participants. New threads not only open you up to all possible participants again, they typically get faster response, too.

    Please continue in your other thread...
    HTH
    Regards, Jeff

Closed 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