Hi,
Struggling to save an excel file with the following file name: "20181018 ALEX - Data.xlsx". I have the below code but the application.workday function doesnt seem to be working. Any ideas how to get around this?
File name should be yesterday's business date and then ALEX - Data.
Thanks!
Struggling to save an excel file with the following file name: "20181018 ALEX - Data.xlsx". I have the below code but the application.workday function doesnt seem to be working. Any ideas how to get around this?
File name should be yesterday's business date and then ALEX - Data.
Code:
ActiveWorkbook.SaveAs Filename:= "filepath\" & Format(Application.WorkDay(Date, -1), "YYYYMMDD") & " ALEX - Data" & ".xlsx"
Thanks!