Hi,
Is there any way to clear the event queue programmitically?
The reason I need to do this is that for some unknown reason, when running some code in an Excel spreadsheet, my Userforms get hidden. Even if I put in Userform1.show as the last statement in my code, the userform flashes up for a millisecond then closes down again.
I am thinking that there must be some other commands in a VBA event queue which are run even after the last line of my code is finished.
As you can probably tell, my question is a bit obscure, but if anyone understands what I am trying to get at, and is able to help, it would be greatly appreciated.
Thanks
Matt
Is there any way to clear the event queue programmitically?
The reason I need to do this is that for some unknown reason, when running some code in an Excel spreadsheet, my Userforms get hidden. Even if I put in Userform1.show as the last statement in my code, the userform flashes up for a millisecond then closes down again.
I am thinking that there must be some other commands in a VBA event queue which are run even after the last line of my code is finished.
As you can probably tell, my question is a bit obscure, but if anyone understands what I am trying to get at, and is able to help, it would be greatly appreciated.
Thanks
Matt