Dim dteProcTime As Date
Sub Main()
dteProcTime = Now() + TimeValue("00:05:00")
Application.OnTime dteProcTime, "DoSomething"
End Sub
Sub DoSomething()
Cells(1, 1) = "Hello. The current time is " & Now
Call Main
End Sub
Sub StopIt()
Application.OnTime dteProcTime, "DoSomething", , False
End Sub