What I am trying to do is make it so the workbook will save and automatically append the date to the end of the filename, before the extension.
This is the code I use to save the file, however I can't get it to run off the BeforeSave event.
Any suggestions?
Code:
Dim dt As String, wbNam As String
wbNam = Left(ThisWorkbook.Name, InStr(ThisWorkbook.Name, ".") - 1)
dt = Format(CStr(Now), "mmddyy")
ActiveWorkbook.SaveAs Filename:=wbNam & " " & dt
This is the code I use to save the file, however I can't get it to run off the BeforeSave event.
Any suggestions?