I have Excel 2003 so I cannot set it to autosave. I need Excel to save every 24 hours (file never closes) and I need it to save with the current date. I have the saving with a current date part, now I just need it to auto save
Here is the code for saving the file name as the current date
Thank you
Here is the code for saving the file name as the current date
Code:
Sub Folder()
Dim strpath As String, strFileName As String
strpath = "C:\Documents and Settings\leaxl49\Desktop"
strFileName = Format(Now(), "yyyy-mm-dd") & "_" & ActiveWorkbook.Name
ActiveWorkbook.SaveAs Filename:= _
strpath & strFileName, FileFormat:=xlNormal, _
Password:="", WriteResPassword:="", ReadOnlyRecommended:=False, _
CreateBackup:=False
End Sub
Thank you