autosave workbook

  • Thread starter Thread starter netjerk
  • Start date Start date
N

netjerk

How to do an autosave workbook at a fix time(eg. 10pm) to a file wit
filename of current time and date? Or export the chart to a fil
readable by excel
 
copy and paste to a normal module sheet


Run SetAutoSave


Sub SetAutoSave()
Application.OnTime TimeValue("20:00:00"), "AutoSave"
End Sub

Sub AutoSave()
Dim fName As String
fName = ActiveWorkbook.Path & _
"\Test " & Format(Now(), "ddmmyy hhmm") & ".xls"

ActiveWorkbook.SaveAs FileName:=fName, FileFormat:= _
xlNormal, Password:="", WriteResPassword:="", _
ReadOnlyRecommended:=False _
, CreateBackup:=False
End Su
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top