Hello, I'm having trouble with what should be a very easy excel problem.
I am opening a file from my desktop and running it through a macro. I then need to save it to a specific folder and would like the macro to do this for me.
I tried just recording a macro:
The name of this file is "Export_12-18-15" but each day it will be a different file name: export_12-19-15, export_12-20-15 etc. but this macro will save every file as "export_12-18-15.xls", correct? How do I work around this?
I am opening a file from my desktop and running it through a macro. I then need to save it to a specific folder and would like the macro to do this for me.
I tried just recording a macro:
Code:
ActiveWorkbook.SaveAs Filename:= _
"C:\Users\rr235108\Desktop\xmacrostuffx\Export_12-18-15.xls", _
FileFormat:=xlExcel8, Password:="", WriteResPassword:="", _
ReadOnlyRecommended:=False, CreateBackup:=False
The name of this file is "Export_12-18-15" but each day it will be a different file name: export_12-19-15, export_12-20-15 etc. but this macro will save every file as "export_12-18-15.xls", correct? How do I work around this?