Hi
I am using a time method to grab some data every minute and it is working but the problem is I can't turn it off! I have used the example in VB help but to no avail. Here is the code, any suggestions?
Sub Timer_Data()
Application.OnTime Now + TimeValue("00:01:00"), "Timer_Run"
End Sub
Sub End_Timer_Data()
Application.OnTime EarliestTime:=Now + TimeValue("00:01:00"), _
Procedure:="Timer_Run", Schedule:=False
End Sub
Thanks
Angus
I am using a time method to grab some data every minute and it is working but the problem is I can't turn it off! I have used the example in VB help but to no avail. Here is the code, any suggestions?
Sub Timer_Data()
Application.OnTime Now + TimeValue("00:01:00"), "Timer_Run"
End Sub
Sub End_Timer_Data()
Application.OnTime EarliestTime:=Now + TimeValue("00:01:00"), _
Procedure:="Timer_Run", Schedule:=False
End Sub
Thanks
Angus