Morning all,
I created this macro to save my file to a specific folder and use todays date within the file name and it worked great in my test spreadsheet but when I tried to transfer the code across to my user spreadsheet it returns a problem which is. compile error: wrong number of arguments or invalid property assignment. I have pasted a copy of the code below. Any help on this issue would be appreciated.
Sub filesave()
ActiveWorkbook.SaveAs ("C:\Users" & Environ("username") & _
"\downloads\Saved Data\data" & Format(Now(), "DD-MM-YY hh mm AMPM") & ".xlsm")
End Sub
I created this macro to save my file to a specific folder and use todays date within the file name and it worked great in my test spreadsheet but when I tried to transfer the code across to my user spreadsheet it returns a problem which is. compile error: wrong number of arguments or invalid property assignment. I have pasted a copy of the code below. Any help on this issue would be appreciated.
Sub filesave()
ActiveWorkbook.SaveAs ("C:\Users" & Environ("username") & _
"\downloads\Saved Data\data" & Format(Now(), "DD-MM-YY hh mm AMPM") & ".xlsm")
End Sub