UserForm_Initialize
I agree Bart.
I tend to have a procedure outside of the userform that loads the form and
does all the initialise biz, then shows it. I find it more manageable.
--
HTH
Bob Phillips
(remove nothere from email address if mailing direct)
"RB Smissaert" wrote in message
...
No particular question really, but just an observation and maybe somebody
has some opinion about this.
When you have a complex VBA project with userforms it can be difficult to
control when the UserForm_Initialize
event will be triggered. I have found now that it is just much easier not
to
use this at all and make a procedure
that runs all the code that normally would go into UserForm_Initialize.
Then you can run this procedure whenever you want, for example after Load
UserForm.
Doing this gives you me more control and avoids problems.
RBS
|