excel vba - Where to cancel Application.OnTime in VBA -
By using VBA in Excel 2003, I am trying to cancel an application. Onetime event uses the following code Taxes:
Applications. Premature Time: = varNextRunTime, Process: = "Some Methods", Schedule: = Incorrect
Where varNextRunTime runs a global variable that is due to it being next time. This code runs in the workbookbase close event handler, so the workbook always keeps running, which is my intention.
However, if the user tries to close the workbook, but changes his mind and hits the cancel button when he is asked to save (yes, no, cancel), then The application. The onetime event has still been canceled. Before the decision to cancel before, close closure is always run, so anyone has any idea how can I just cancel the application. From time to time when the event workbook is closed?
here are some ideas
Comments
Post a Comment