I have a workbook which requires to be saved at the beginning then auto saving every 5 mins, but i need to delay the initial save so that when the workbook opens it waits 30secs then does the save.
This is the code i have, but it runs it automatically:
Private Sub Workbook_Open()
Time = Now() + TimeValue("00:00:30")
Application.OnTime Time, "WaitUntilReady"
Public Sub WaitUntilReady()
savefolder = "C:\Users\" & Environ$("Username") & "\Desktop\"
mypath = savefolder & Format(Date, "dd-mmm-yy")
If Len(Dir(mypath, vbDirectory)) = 0 Then MkDir mypath
On Error Resume Next
ThisWorkbook.SaveAs mypath & "\" & "Practice Monitoring Template" & " - " & Format(Time, "hh.nn") & ".xlsm"
Application.EnableEvents = True
End Sub