+ Reply to Thread
Results 1 to 3 of 3

Macro to Loop Through Full Folder of TXT files

  1. #1
    Forum Contributor
    Join Date
    11-02-2007
    Location
    Leeds, England
    MS-Off Ver
    MS Office 2007
    Posts
    134

    Macro to Loop Through Full Folder of TXT files

    Hi All,

    I have a macro:

    Please Login or Register  to view this content.

    I would like to do the following:
    • Open a main workbook
    • Click a button to run a macro
    • Select a folder in a window
    • Open each TXT file in this folder and run the above macro on all TXT files

    I would also like to add a few lines to the end of the macro to save each TXT file as an XLS file. Can anyone assist me with this?

    Many Thanks
    dvent!

  2. #2
    Forum Expert Kenneth Hobson's Avatar
    Join Date
    02-05-2007
    Location
    Tecumseh, OK
    MS-Off Ver
    Office 365, Win10Home
    Posts
    2,573

    Re: Macro to Loop Through Full Folder of TXT files

    You might need to tweak your Edit routine a bit.

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    11-02-2007
    Location
    Leeds, England
    MS-Off Ver
    MS Office 2007
    Posts
    134

    Re: Macro to Loop Through Full Folder of TXT files

    Hi Kenneth! That's great.

    Is there a way to add one feature to the end of this macro to print all of the XLS files once they are produced?

+ 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