+ Reply to Thread
Results 1 to 3 of 3

reformat directory of text files and save as excel simultaneously

  1. #1
    Registered User
    Join Date
    02-26-2014
    Location
    Pennsylvania
    MS-Off Ver
    Excel 2010
    Posts
    2

    reformat directory of text files and save as excel simultaneously

    I have several hundred text files which I would like to reformat and save as excel without needing to open each file individually.

    I'm entirely new to working with macros, so, I was able to use macro recorder to save the steps to reformat the file, but would like help in setting up the part of the macro to automatically open and reformat all of the files.

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: reformat directory of text files and save as excel simultaneously

    Show the recorded macro code you have so far. See my signature block below concerning surrounding your code with CODE tags.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Registered User
    Join Date
    02-26-2014
    Location
    Pennsylvania
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: reformat directory of text files and save as excel simultaneously

    Here's the recorded macro code for the reformatting.


    Please Login or Register  to view this content.

    I'd like to be able to do this for large batches, and to add the filename as a cell in the reformatted files.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 5
    Last Post: 11-19-2013, 04:11 PM
  2. [SOLVED] Trying to download Files From the Web and Save on a Directory
    By phacc in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-25-2013, 08:54 PM
  3. Replies: 3
    Last Post: 03-10-2012, 12:22 AM
  4. Save all .xlsx files in a directory to .xls
    By paul00 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-24-2012, 08:05 PM
  5. Save worksheets as csv files in a given directory
    By adam2308 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-30-2011, 03:22 AM

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