TonyJollans
Programmer
Hi,
I wonder if someone would be kind enough to explain to me the exact process which occurs during userform activation.
I have a userform which includes a progress meter and I want it displayed while I run some code. It all works, I have just been trying to understand why.
In my form's activate event code I hide some controls and I call my time-consuming routine. The form displays with the controls hidden but before the rest of my code runs. In other words some of the code in the event routine seems to run before the screen display and some after. What are the rules?
I have tried all sorts of things to investigate this but it seems that any interaction causes extra screen refreshes which interfere with my tests.
For what it's worth, my best guess is that the first code statement which does anything other than reference the userform object directly, triggers the display. But this seems a trifle obscure even for Microsoft.
If it's relevant, I'm using Excel 97. Or it's using me, I'm not sure which.
Thanks,
TonyHi,
I wonder if someone would be kind enough to explain to me the exact process which occurs during userform activation.
I have a userform which includes a progress meter and I want it displayed while I run some code. It all works, I have just been trying to understand why.
In my form's activate event code I hide some controls and I call my time-consuming routine. The form displays with the controls hidden but before the rest of my code runs. In other words some of the code in the event routine seems to run before the screen display and some after. What are the rules?
I have tried all sorts of things to investigate this but it seems that any interaction causes extra screen refreshes which interfere with my tests.
For what it's worth, my best guess is that the first code statement which does anything other than reference the userform object directly, triggers the display. But this seems a trifle obscure even for Microsoft.
If it's relevant, I'm using Excel 97. Or it's using me, I'm not sure which.
Thanks,
Tony
I wonder if someone would be kind enough to explain to me the exact process which occurs during userform activation.
I have a userform which includes a progress meter and I want it displayed while I run some code. It all works, I have just been trying to understand why.
In my form's activate event code I hide some controls and I call my time-consuming routine. The form displays with the controls hidden but before the rest of my code runs. In other words some of the code in the event routine seems to run before the screen display and some after. What are the rules?
I have tried all sorts of things to investigate this but it seems that any interaction causes extra screen refreshes which interfere with my tests.
For what it's worth, my best guess is that the first code statement which does anything other than reference the userform object directly, triggers the display. But this seems a trifle obscure even for Microsoft.
If it's relevant, I'm using Excel 97. Or it's using me, I'm not sure which.
Thanks,
TonyHi,
I wonder if someone would be kind enough to explain to me the exact process which occurs during userform activation.
I have a userform which includes a progress meter and I want it displayed while I run some code. It all works, I have just been trying to understand why.
In my form's activate event code I hide some controls and I call my time-consuming routine. The form displays with the controls hidden but before the rest of my code runs. In other words some of the code in the event routine seems to run before the screen display and some after. What are the rules?
I have tried all sorts of things to investigate this but it seems that any interaction causes extra screen refreshes which interfere with my tests.
For what it's worth, my best guess is that the first code statement which does anything other than reference the userform object directly, triggers the display. But this seems a trifle obscure even for Microsoft.
If it's relevant, I'm using Excel 97. Or it's using me, I'm not sure which.
Thanks,
Tony