indi visual
Member
I am looking to run a timer in a sub every 3 seconds, and to stop the timer when the sub is done. I just can't figure out the turn it off part.
Sub OnTimeMacro()
Application.OnTime Now + TimeValue("00:00:03"), "myMacro"
End Sub
mySUB()
Call myMacro
'yada yada other stuff
Exit OnTimeMacro
End Sub
Sub OnTimeMacro()
Application.OnTime Now + TimeValue("00:00:03"), "myMacro"
End Sub
mySUB()
Call myMacro
'yada yada other stuff
Exit OnTimeMacro
End Sub