+ Reply to Thread
Results 1 to 6 of 6

save all sheets as separate text files

  1. #1
    Registered User
    Join Date
    04-16-2010
    Location
    Budapest, Hungary
    MS-Off Ver
    Excel 2003
    Posts
    3

    Post save all sheets as separate text files

    Hi,

    I have a workbook with 45 sheets and I am looking for a script to save all sheets as separate text files. The script should take the "save as" file names from the sheet names.

    Although they should be saved as text files, the extension is php as given in the sheet names.

    Unfortunately I've been out of practice for years with Excel VBA macros of this deepth, so I would highly appreciate some help for the above!

    Thanks a lot, Minnesaenger

  2. #2
    Valued Forum Contributor mdbct's Avatar
    Join Date
    11-11-2005
    Location
    CT
    MS-Off Ver
    2003 & 2007
    Posts
    848

    re: save all sheets as separate text files

    The following will save all sheets to the same folder as the current file. If the current file hasn't been saved, the files will be saved in the default file location as set in your options.

    Please Login or Register  to view this content.

  3. #3
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    re: save all sheets as separate text files

    A link to my page with macros for parsing Worksheets to workbooks:

    Sheets to Workbooks(1)
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  4. #4
    Registered User
    Join Date
    04-16-2010
    Location
    Budapest, Hungary
    MS-Off Ver
    Excel 2003
    Posts
    3

    re: save all sheets as separate text files

    mdbct, the script runs flawlessly, thank you very much for your help!!

  5. #5
    Registered User
    Join Date
    04-16-2010
    Location
    Budapest, Hungary
    MS-Off Ver
    Excel 2003
    Posts
    3

    re: save all sheets as separate text files

    JBeaucaire, thanks a lot, I'll look around your site!

  6. #6
    Registered User
    Join Date
    02-06-2015
    Location
    INDIA
    MS-Off Ver
    MS OFFICE 2007
    Posts
    2

    Re: save all sheets as separate text files

    JBeaucaire. thanks for solution

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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