Select first option in a dropdown box - by using VBA ?

StevenSkinner

New Member
Joined
Mar 7, 2005
Messages
18
Hello,

I need to select the first option automatically in my Combo Box using VBA, Any Ideas ???

p.s. the combo box is linked to a table

:cry:
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Do you mean that when you open a form, you want to see something selected in the combo -- a default value?

Denis
 
Upvote 0
I don't think it's going to be a default Value (Although I could be wrong)

because the combo box get's requery'd it could have any values inside it, so I want it to display the first value in the combo box after its been requery'd ??

Any Ideas
 
Upvote 0
Hmmm...

Would a ListBox be suitable? You can make it 2-3 rows high to restrict the space, but I often find them quicker than Combos for choosing from a range of options.

Denis
 
Upvote 0

Forum statistics

Threads
1,221,869
Messages
6,162,530
Members
451,773
Latest member
ssmith04

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top