+ Reply to Thread
Results 1 to 3 of 3

need macro to delete all tabs but 1 from multiple excel files and save each as a csv file

  1. #1
    Registered User
    Join Date
    05-02-2013
    Location
    Hoffman Estates, IL
    MS-Off Ver
    Microsoft Excel 2010
    Posts
    2

    need macro to delete all tabs but 1 from multiple excel files and save each as a csv file

    I get 84 downloaded excel files daily with multiple tabs (same tabs) on each.
    I need a macro to delete all tabs but 1 from each of these excel files and convert (or save) the entire group as multiple csv files.

    Then I plan to combine the csv files into one file which I already know how to do. I am not an expert with macros but have used them before and am okay with function use. I could not find a function to perform any of this and appreciate any help given.

    I found some code by Chance2 and also dominicb from 5.6.2005 posted to a similar post so the first part of deleting the extra tabs is good but I still need to know how to save multiple excel files as csv files with a macro. Thanks!
    Last edited by lgrimes; 05-02-2013 at 06:01 PM.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,480

    Re: need macro to delete all tabs but 1 from multiple excel files and save each as a csv f

    Hi,
    You can only save one sheet in a workbook as a .csv file, would deleting the other sheets be necessary?

  3. #3
    Registered User
    Join Date
    05-02-2013
    Location
    Hoffman Estates, IL
    MS-Off Ver
    Microsoft Excel 2010
    Posts
    2

    Re: need macro to delete all tabs but 1 from multiple excel files and save each as a csv f

    Since I don't want to handle 84 files one at a time.. I'm looking for a way to use a macro to go through all the excel files in a folder and handle the additional tabs deletion process as well as the saving the processed files as csv files. It is necessary I believe to delete all the tabs since csv files cannot be created with more than 1 tab.

+ 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