I have an Excel Workbook that on form button click I want to save a copy of the workbook with the filename being the current date.
I keep trying the the following
I was struggling, but the below worked for me finally!
Dim WB As Workbook Set WB = Workbooks.Open("\\users\path\Desktop\test.xlsx") WB.SaveAs fileName:="\\users\path\Desktop\test.xls", _ FileFormat:=xlExcel8, Password:="", WriteResPassword:="", _ ReadOnlyRecommended:=False, CreateBackup:=False