I asked a question about this last week here I posted my code as requested but no answer. Anyway, I have some more specific questions.
When resetting the timer, what is the purpose of the Procedure argument?
It doesn't make sense to have a call-back with Schedule:=False.
What happens if the call-back function is no longer in scope for example? Is the timer still reset properly? Is this why most of the examples I've seen (including Chip Pearson - unfortunately, for some reason I'm not allowed to include the link) proceed the OnTime call with On Error Resume Next
And, sorry to ask again, but why is this done?
My understanding is that the the timer is registered by the EarliestTime argument and that this is the "serial number" for the timer that uniquely identifies it.
Is the Procedure argument also included in the registration and subsequent identification process as well?
What happens if the call-back procedure is contained in an object that no longer exists when the timer fires? Or more generally, what happens if there is some error when the timer fires and tries to execute the call-back procedure?
If the LatestTime argument is included, what happens after that time if the timer has not been able to fire? Does Windows erase the timer completely?