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

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.

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,248
Set the .MatchEntry propery to fmMatchEntryComplete and the .MatchRequired to True.
 

Forum statistics

Threads
1,172,010
Messages
5,878,711
Members
433,366
Latest member
kaaryy

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