I have a UserForm that allows the user 5 minutes to either input the required info or cancel the transaction. If they fail to do so, the user form closes and they are returned to a menu screen. The code is as follows:
Private Sub UserForm_Activate()
Application.OnTime Now+TimeValue("00.05.00"), "timeup"
End Sub
The code works great, perhaps too great. My question.... how do I kill the ontime event if the user cancels the transaction or inputs the required info & clicks on the appropriate control button to move to the next step???
Everytime the user enters this form (and they may eneter it several times), a new ontime event is established, which I believe is gobbling up memory.
Any suggestions would be very much appreciated.
Thanks
Ted.............