+ Reply to Thread
Results 1 to 2 of 2

dynamically saving excel tabs to individual .csv files

  1. #1
    Registered User
    Join Date
    08-24-2012
    Location
    Columbus
    MS-Off Ver
    Excel 2010
    Posts
    46

    dynamically saving excel tabs to individual .csv files

    I'm new to this site and am just beginning with learning VBA. At work I am trying to write code that will save specific tabs in an .xlsm file as .csv files to different folders. I would also like to rename the tabs in the process. I'll explain in detail what exactly I am looking to do with an example.

    Tab two in .xlsm spreadsheet is named "BM". I would like to save tab "BM" in the following directory:
    "K:\accounting extracts\Holdings\Aegis\Q2010BM" with the file name "2010BM20120824"
    I would like the file name to be a combination of three objects:
    1.) "2010" is the name of the first tab in .xlsm file.
    2.) "BM" is the name of the actual tab I am saving as a .csv file
    3.) "20120824" is the date that would be referenced from cell "H4" in the first tab, tab "2010" in this case August 24, 2012

    Tab three in .xlsm spreadsheet us named "BM-BM". I would like to save tab "BM" in the following directory"
    "K:\accounting extracts\Benchmark Holdings\08.24.2012" with the file name "2010BM"
    I would like the file name to be a combination of two objects:
    1.) "2010" is the name of the first tab in .xlsm file.
    2.) "BM" is part of the name of the actual tab I am saving as a .csv file "BM-BM"

    I actually have eleven cases of each of these for two accounts I'm working with for a total of 44 files I have to save each morning. If someone could provide me with a macro for this, I should able to edit it for the other tabs. Please let me know if you have any questions.

    Thanks in advance for any support you can provide.

  2. #2
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: dynamically saving excel tabs to individual .csv files

    you can arrange this
    Please Login or Register  to view this content.
    If solved remember to mark Thread as solved

+ 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