Combo Box Query

MrGJEB

New Member
Joined
Jun 13, 2008
Messages
37
Hi,

I am using a combo box on a userform that is linked to a range in my worksheet.

Currently the user can type what ever they want into the combo box, even if it is not in my range.

How can i validate the combo box so that the user is only able to select an entry from the drop down list i.e my range.

many thanks
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest

pike

Board Regular
Joined
Sep 16, 2007
Messages
231
MrGJEB

In the combbox properties change the "Style" property from combobox 0 to list 2

pike
 

mikerickson

MrExcel MVP
Joined
Jan 15, 2007
Messages
24,270
Set the .MatchEntry propery to fmMatchEntryComplete and the .MatchRequired to True.
 

Forum statistics

Threads
1,176,123
Messages
5,901,515
Members
434,899
Latest member
powerappsjoker99

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
Top