Hello,
I am trying use VBA to rename a file as a cell value, and then save it to a folder on my desktop. The below code is what i have, but i get an the "Compile error: Invaid or unqualified reference" error. I am new to macros/vba and cant see the error. I get this error for most of the code i have pulled from the internet to do this and don't know what i am doing wrong.
Application.DisplayAlerts = False ' suppress overwrite warning message
ActiveWorkbook.SaveAs Filename:="C:\Users\Ryan\Desktop\test" & Range("Y1"), _
FileFormat:=(.xlsm), _
CreateBackup:=False
Application.DisplayAlerts = True
ActiveWorkbook.Close SaveChanges:=False
Bookmarks