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.
Bookmarks