Good morning,
I have a macro named "UpdateScreen" that ends with Application.OnTime Now + TimeValue("00:01:00"), "UpdateScreen" so it runs it again 1 minute later.
The problem is that the workbook contains a "Refresh" button so it can be refreshed at any time manually. On running this macro it triggers the OnTime again, meaning itll run twice in the space of 60 seconds.
The more you click it the more it runs in a minute.
Is there a way to cancel the OnTime just before it is called so that the timer resets whenever the "UpdateScreen" macro ends?
Thank you
Bookmarks