nniedzielski
Well-known Member
- Joined
- Jan 8, 2016
- Messages
- 598
- Office Version
- 2019
- Platform
- Windows
I am running a macro that finishes by saving the file to a new path, while Killing the Old File. Which is awesome. How though can I get the file to save as with the file name being "ITA with the date and time it was saved?
So it would save right now as ITA4_29_2016 1527
Yes I would like it to be 24 hour clock if possible as well.
Right now it is just saving as ITA because that was the old name.
heres my code as of right now:
thank you,
So it would save right now as ITA4_29_2016 1527
Yes I would like it to be 24 hour clock if possible as well.
Right now it is just saving as ITA because that was the old name.
heres my code as of right now:
Code:
y.Activate Dim NewPath As String, OldFile As String
NewPath = "C:\IB Macro\ITA USED\"
OldFile = ActiveWorkbook.FullName
ActiveWorkbook.SaveAs NewPath & ActiveWorkbook.Name
Kill OldFile
thank you,