.
Option Explicit
Sub macro1()
Application.OnTime Now + TimeValue("00:00:30"), "sveIt" '<-- this tells the macro, in 5 seconds run yourself again.
'place your other code here
End Sub
Sub sveIt()
Application.ScreenUpdating = False
Application.DisplayAlerts = False
Dim FName As String
Dim FPath As String
Dim dt As String
dt = Format(Now(), "mm-dd-yyyy hh.mm.ss")
FPath = "C:\Users\My\Desktop" ''<-- Change SAVE DIRECTORY as required
FName = Sheets("Sheet1").Range("A1").Text & "-" & dt & ".xlsm"
ThisWorkbook.SaveAs Filename:=FPath & "\" & FName
Application.ScreenUpdating = True
Application.DisplayAlerts = True
macro1
End Sub
Bookmarks