ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   autosave workbook (https://www.excelbanter.com/excel-programming/297564-autosave-workbook.html)

netjerk[_2_]

autosave workbook
 
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

--
Message posted from http://www.ExcelForum.com


mudraker[_207_]

autosave workbook
 
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

--
Message posted from http://www.ExcelForum.com



All times are GMT +1. The time now is 07:45 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com