JeffGrant
Well-known Member
- Joined
- Apr 7, 2021
- Messages
- 516
- Office Version
- 365
- Platform
- Windows
Hi All,
does anybody have a vba routine that will add Date & Time to the back up file name, however, I would like something a little more than
I find the SAVE AS routine very annoying because of the change of active file when the SAVE AS is performed.
Ideally, I would like to:
Keep the same file name
Have the back up copy file name be Filename + Date & Time - so it is unique
But NOT change the active file.
Any ideas.
thanks
does anybody have a vba routine that will add Date & Time to the back up file name, however, I would like something a little more than
VBA Code:
ActiveWorkbook.SaveAs ("C:\MyDrive " & Format(Now(), "DD-MMM-YYYY hh mm AMPM") & ".xlsm")
I find the SAVE AS routine very annoying because of the change of active file when the SAVE AS is performed.
Ideally, I would like to:
Keep the same file name
Have the back up copy file name be Filename + Date & Time - so it is unique
But NOT change the active file.
Any ideas.
thanks