Avatar of jana
jana
Flag for United States of America asked on

The command '.DropDown' displays the contents way off it's combo box in Excel

We have a combobox that when is activate, we use 'ComboBox1.DropDown' to display the contents in a dropdown.  However, the contents is always displayed way off the screen as to appear completely detached from the form and combobox (see pix below)

combobox way off
How can we make dropdown display wight under the combobox?
Microsoft Excel

Avatar of undefined
Last Comment
jana

8/22/2022 - Mon
byundt

Could you please post a sample file that reproduces the problem?

Also, could you tell us which version of Excel you are using?
jana

ASKER
Hi,

Just found the solution:

Private Sub UserForm_Activate()
Me.cmbSheets.DropDown
End Sub

Open in new window


When creating a combo and we want to display contents as the "dropdown", we were using  'Me.cmbSheets.DropDown' in the wrong place.

After placing it 'UserForm_Activate()' worked fine.
ASKER CERTIFIED SOLUTION
Wayne Taylor (webtubbs)

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
jana

ASKER
I've requested that this question be closed as follows:

Accepted answer: 0 points for Ramante's comment #a41474906

for the following reason:

It solved the problem
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
jana

ASKER
Even though we solved the problem prior ID: 41474907, we will award the points to the EE since it is the solution.