VBA myCtl.dropDown firing so early that the drop-down is in the wrongplace

A

Aaron Green

When my form to choose contact is shown (there is no Load available in
VBA, so i can't explicitly do that first), it's trying to dropdown the
contact selector combobox (set via the control's Enter event), but
apparently the form isn't yet drawn, so the pop-up list is way in the
upper left-hand corner of the screen.

Any way more elegant than using a timer to prevent the dropdown from
causing this aberration? (Note: if I tab away from and back to the
control, the dropDown event leads to the proper display of the dropdown
list!)

Thanks,
A
 
K

Ken Slovak - [MVP - Outlook]

Is this an Outlook VBA UserForm you are talking about? Try using the
Initialize and Activate events.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top