Owen.OSullivan
New Member
- Joined
- Apr 5, 2011
- Messages
- 3
Hi,
Once every day at a specific time, I am opening an excel workbook as a scheduled task and then running a macro activated with Autpen. I want to save the file as part of the macro but want the name to change to indicate the date that the workbook was opened and the macro activated.
For example, I want the workbook to be saved as "Daily Carriage Analysis 05-04-2011" when saved on the fifth of April 2011 and as "Daily Carriage Analysis 06-04-2011" when saved on the sixth of April 2011 etc.
I can build the file name (including the folder path) in a cell in the work book as part of the macro but just cannot use that built name to save the file.
Is this possible?
Any help, much appreciated.
Many thanks.
Once every day at a specific time, I am opening an excel workbook as a scheduled task and then running a macro activated with Autpen. I want to save the file as part of the macro but want the name to change to indicate the date that the workbook was opened and the macro activated.
For example, I want the workbook to be saved as "Daily Carriage Analysis 05-04-2011" when saved on the fifth of April 2011 and as "Daily Carriage Analysis 06-04-2011" when saved on the sixth of April 2011 etc.
I can build the file name (including the folder path) in a cell in the work book as part of the macro but just cannot use that built name to save the file.
Is this possible?
Any help, much appreciated.
Many thanks.