Background:
In the middle of the night I have my data warehouse set to dump five .csv files to a set directory on one of my NT servers. At a pre-defined time, the NT server starts Excel and the "Auto Open" macro of the workbook (specified on the command line) copies a .csv file into the pre-formatted workbook and saves itself as a new file in a different directory before closing Excel. This process happens once for each .csv file.
Situation:
The number of .csv files is about to increase from five to fifteen (or, potentially, more). Rather than adding ten more instances of Excel to the scheduler on this NT server I would prefer a more "user friendly" solution.
Opportunity:
I see a master "automation" spreadsheet (containing a list of file names, directories, parameters, E-mail addresses, etc.) with its own "Auto Open" macro that will read and process the list -- one row at a time.
I created a workbook with the list of file names down column A and a macro that will read the list sequentially, quitting when it hits a blank line. In test I was able to put up a message box that contained the "file name" as it read each row. I then added the code to open each file and run the macro. It works perfectly on the first file in the list, but control never seems to come back to the master macro so it can move to the next file.
I'm sure you're going to want to see some of the code, but first I would just like to know if what I'm attempting is even doable. Is there a better / more obvious / readily available solution that would prevent me from "reinventing the wheel"?
Thanks, in advance, for any replies...
--sshowers
In the middle of the night I have my data warehouse set to dump five .csv files to a set directory on one of my NT servers. At a pre-defined time, the NT server starts Excel and the "Auto Open" macro of the workbook (specified on the command line) copies a .csv file into the pre-formatted workbook and saves itself as a new file in a different directory before closing Excel. This process happens once for each .csv file.
Situation:
The number of .csv files is about to increase from five to fifteen (or, potentially, more). Rather than adding ten more instances of Excel to the scheduler on this NT server I would prefer a more "user friendly" solution.
Opportunity:
I see a master "automation" spreadsheet (containing a list of file names, directories, parameters, E-mail addresses, etc.) with its own "Auto Open" macro that will read and process the list -- one row at a time.
I created a workbook with the list of file names down column A and a macro that will read the list sequentially, quitting when it hits a blank line. In test I was able to put up a message box that contained the "file name" as it read each row. I then added the code to open each file and run the macro. It works perfectly on the first file in the list, but control never seems to come back to the master macro so it can move to the next file.
I'm sure you're going to want to see some of the code, but first I would just like to know if what I'm attempting is even doable. Is there a better / more obvious / readily available solution that would prevent me from "reinventing the wheel"?
Thanks, in advance, for any replies...
--sshowers