Matt Young
New Member
- Joined
- Nov 2, 2018
- Messages
- 8
- Office Version
- 365
- Platform
- Windows
Hi I know this tittle makes little sense but here goes
so I ave a few macros that clear the many sheets have for new data entry. What I want to do is to have the macro auto save with a new name in another location.
I can get it all working but the after the auto save, the new save is opened and the original is closed.
Her is the "auto save vba"
Sub AutoSave()
'
' AutoSave Macro
'
'
ChDir "C:\Users\e368464\Desktop\backup spreadsheet\AutoSave"
ActiveWorkbook.SaveAs Filename:="C:\Users\e368464\Desktop\backup spreadsheet\AutoSave\SF025 - v3.3 - Device Backup Spreadsheet" & Format(Date, "yyyymmddhhmmss") & "xlsm", FileFormat:= _
xlOpenXMLWorkbookMacroEnabled, CreateBackup:=False
Afte the save the macro works perfectly, however, the wrong fle is open (the suto save file which I am using as the backup).
Can any one shed any ligt on what I am doing wrong plese?
so I ave a few macros that clear the many sheets have for new data entry. What I want to do is to have the macro auto save with a new name in another location.
I can get it all working but the after the auto save, the new save is opened and the original is closed.
Her is the "auto save vba"
Sub AutoSave()
'
' AutoSave Macro
'
'
ChDir "C:\Users\e368464\Desktop\backup spreadsheet\AutoSave"
ActiveWorkbook.SaveAs Filename:="C:\Users\e368464\Desktop\backup spreadsheet\AutoSave\SF025 - v3.3 - Device Backup Spreadsheet" & Format(Date, "yyyymmddhhmmss") & "xlsm", FileFormat:= _
xlOpenXMLWorkbookMacroEnabled, CreateBackup:=False
Afte the save the macro works perfectly, however, the wrong fle is open (the suto save file which I am using as the backup).
Can any one shed any ligt on what I am doing wrong plese?