I am not too savvy with VB but I am trying to create a macro that will save a file to a new folder. My problem is, each time the file name will be different(because of a new date) and I do not know how to write the macro so that it will copy the most recent file name without replacing a previous file. See below for what I have created.
"S:\HRShare\WorkforcePlanning\Suzanne\Riley-Posted Positions by Recruiter"
ActiveWorkbook.SaveAs FileName:= _
"S:\HRShare\WorkforcePlanning\Suzanne\Riley-Posted Positions by Recruiter\Riley-Posted Positions by Recr2004-05-06.xls" _
, FileFormat:=xlExcel9795, Password:="", WriteResPassword:="", _
ReadOnlyRecommended:=False, CreateBackup:=False
End Sub
Any help would be greatly appreciated!!
"S:\HRShare\WorkforcePlanning\Suzanne\Riley-Posted Positions by Recruiter"
ActiveWorkbook.SaveAs FileName:= _
"S:\HRShare\WorkforcePlanning\Suzanne\Riley-Posted Positions by Recruiter\Riley-Posted Positions by Recr2004-05-06.xls" _
, FileFormat:=xlExcel9795, Password:="", WriteResPassword:="", _
ReadOnlyRecommended:=False, CreateBackup:=False
End Sub
Any help would be greatly appreciated!!