chrissmarlow
Board Regular
- Joined
- Jun 3, 2010
- Messages
- 59
Hi Guys,
I am using the follwoing code on the end of my macro to save a copy of the spreadsheet with todays date, is there a way of adding a "v1" or "v2" to the filename if there is already a file with that name (if someone has already run the macro on that day) rather than just overwritting it? Thanks for the help
I am using the follwoing code on the end of my macro to save a copy of the spreadsheet with todays date, is there a way of adding a "v1" or "v2" to the filename if there is already a file with that name (if someone has already run the macro on that day) rather than just overwritting it? Thanks for the help
Code:
ActiveWorkbook.SaveAs "T:\SupplyChain\Order Book Management\Reports\" & "SRS Sheet - " & Format(Date, "dd-mm-yyyy-") & ".xlsm", FileFormat:=52