Hi,
Found this code that will save my workbook:
Path = Application.ActiveWorkbook.Path
Application.ActiveWorkbook.SaveAs Filename:=Path & "\" & Name, _
FileFormat:=xlOpenXMLWorkbookMacroEnabled, CreateBackup:=False
It works but now I need to tweak it such that the file will save as a copy, then return to the original file to complete the code.
This SaveCopyAs command was found:
ActiveWorkbook.SaveCopyAs Filename:=Path & "\" & Name & ".xls"
However a run-time error appears saying it couldn't find the file (even though it hasn't been created yet). What do I need to modify? Thanks..
Found this code that will save my workbook:
Path = Application.ActiveWorkbook.Path
Application.ActiveWorkbook.SaveAs Filename:=Path & "\" & Name, _
FileFormat:=xlOpenXMLWorkbookMacroEnabled, CreateBackup:=False
It works but now I need to tweak it such that the file will save as a copy, then return to the original file to complete the code.
This SaveCopyAs command was found:
ActiveWorkbook.SaveCopyAs Filename:=Path & "\" & Name & ".xls"
However a run-time error appears saying it couldn't find the file (even though it hasn't been created yet). What do I need to modify? Thanks..