Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Finally discovered that the Initialize event of VBA userforms doesn't always
fire at the time when you expect it to fire. I had some strange bugs that I couldn't figure out as I just presumed that if you did Load Userform1 the initialize event would fire and also that it would fire at no other occasion. I found that for example it could fire when you do: If Userform1.Visible = True Then I have no completely bypassed the Initialize event and just made a normal Sub that does the same and run this just before doing Load Userform1. Seems that this is much better. I am dealing with a large complicated .xla add-in here and maybe the above doesn't apply to simpler projects. RBS |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Event doesn't fire | Excel Discussion (Misc queries) | |||
Workbook Open event does not fire | Excel Programming | |||
Event class doesn't fire in embedded VBA | Excel Programming | |||
Initialize event doesn't work | Excel Programming | |||
Generic questions about variable scope the Initialize event | Excel Programming |