Not quite, AutoRestore saves a temp file, which is deleted when XL shuts
down normally.
One way to accomplish what you want is to put something like this in the
ThisWorkbook module of your workbook.
Private Sub Workbook_Open()
AutoSave
End Sub
Private Sub Workbook_BeforeClose(Cancel As Boolean)
AutoSave Terminate:=True
End Sub
And put this in a regular code module:
Public Sub AutoSave( _
Optional Interval As Long = 5, _
Optional Terminate As Boolean = False)
Static dNextTime As Double
If Terminate Then
Application.OnTime _
EarliestTime:=dNextTime, _
Procedure:="AutoSave", _
Schedule:=False
Else
On Error Resume Next
If Not dNextTime = 0 Then ThisWorkbook.Save
On Error GoTo 0
dNextTime = Now + TimeSerial(0, Interval, 0)
Application.OnTime _
EarliestTime:=dNextTime, _
Procedure:="AutoSave", _
Schedule:=True
End If
End Sub