Guru's
Can Application.OnTime call the procedure that set it?
This would create a loop.
I get an error saying:
Cannot run the macro 'RunCodeAgain()'. The macro may not be available in this workbook or all macros may be disabled.
For Example:
Thanks,
John,
In Annapolis, MD
Can Application.OnTime call the procedure that set it?
This would create a loop.
I get an error saying:
Cannot run the macro 'RunCodeAgain()'. The macro may not be available in this workbook or all macros may be disabled.
For Example:
Code:
Public Sub RunCodeAgain()
'--- Do Stuff & have an Exit --------------
'--- Rerun this routine in 10 seconds ---
Application.OnTime EarliestTime:=Now + TimeValue("0:00:10"), _
Procedure:="RunCodeAgain()", _
Schedule:=True
End
Thanks,
John,
In Annapolis, MD