ForrestGump01
New Member
- Joined
- Mar 15, 2019
- Messages
- 23
- Office Version
- 365
- Platform
- Windows
Hello all,
My workbook has an instructions/input tab, a few hidden lookup tabs, and a bunch of hidden output tabs (currently 10 of them). I would like to export/save as separate files the output tabs based on whether there is data <>"" in the tab or not (excluding the header row 1), and save them as .csv files with file names that reference an input cell on the input tab and the exporting tab name... I would also like to create a dialog box where the user can select what folder these files save into.
Each of the 10 output tabs might have data between rows 1-100, but not all 10 tabs will always have data in them... Example: currently output tabs "Pg 1", "Pg 2", and "Pg 3" have data in them. I would like these three tabs to export as .csv's when the user clicks the macro button on the instructions/input tab as a file name from cell D17 on the input page + the name of the exporting tab ("Pg 1"... etc).
It would also be great if at the end of the export the vba saved the macro file and closed the workbook.
In the end, I would like the file to export any of the output tabs that have data excluding the header row that is not equal to "" as .csv files with specific names, in a user-selected folder, and save the whole workbook as a macro-enabled file in the same folder, then close the workbook. Any help is greatly appreciated.
My workbook has an instructions/input tab, a few hidden lookup tabs, and a bunch of hidden output tabs (currently 10 of them). I would like to export/save as separate files the output tabs based on whether there is data <>"" in the tab or not (excluding the header row 1), and save them as .csv files with file names that reference an input cell on the input tab and the exporting tab name... I would also like to create a dialog box where the user can select what folder these files save into.
Each of the 10 output tabs might have data between rows 1-100, but not all 10 tabs will always have data in them... Example: currently output tabs "Pg 1", "Pg 2", and "Pg 3" have data in them. I would like these three tabs to export as .csv's when the user clicks the macro button on the instructions/input tab as a file name from cell D17 on the input page + the name of the exporting tab ("Pg 1"... etc).
It would also be great if at the end of the export the vba saved the macro file and closed the workbook.
In the end, I would like the file to export any of the output tabs that have data excluding the header row that is not equal to "" as .csv files with specific names, in a user-selected folder, and save the whole workbook as a macro-enabled file in the same folder, then close the workbook. Any help is greatly appreciated.