josullivan601632
New Member
- Joined
- Aug 23, 2020
- Messages
- 39
- Office Version
- 2007
- Platform
- Windows
I have copied and pasted a macro below which does not work, I am trying to teach myself and can't work out where I am going wrong!
This is the marco, copied and pasted:-
Sub SaveAsA2()
thePath = P:\Buyers Files\Saved Buyers Worksheets\
thisFile = Range("A2").Value & "-" & Format(Date, "mm-dd-yyyy")
fullFilename = thePath & thisFile
ActiveWorkbook.SaveAs fullFilename, 52
End Sub
Still says
Compile error:
Syntax error
Would anybody be prepared to test this for me?
This is the marco, copied and pasted:-
Sub SaveAsA2()
thePath = P:\Buyers Files\Saved Buyers Worksheets\
thisFile = Range("A2").Value & "-" & Format(Date, "mm-dd-yyyy")
fullFilename = thePath & thisFile
ActiveWorkbook.SaveAs fullFilename, 52
End Sub
Still says
Compile error:
Syntax error
Would anybody be prepared to test this for me?