Solved

How can the value of a list box control in Excel be limited to only the values in the list?

Posted on 2007-11-23
3
173 Views
Last Modified: 2013-12-25
Hi Experts,

How can the value of a list box control in Excel be limited to only the values in the list?

Thanks
0
Comment
Question by:indyng
  • 3
3 Comments
 
LVL 81

Expert Comment

by:zorvek (Kevin Jones)
ID: 20341580
Assuming you are populating the list box control with values then those values will be the only ones that can be selected. A list box control does not allow values to be entered that are not in the list.

If you are talking about a combo box then there are two flavors. The Forms combo box only allows selection of an item in the list. An ActiveX control will allow entry of values not in the list unless the MatchRequired property is set to True.

Kevin
0
 
LVL 81

Accepted Solution

by:
zorvek (Kevin Jones) earned 500 total points
ID: 20341586
I had the wrong property. Set the Style property to DropDownList.

Kevin
0
 
LVL 81

Expert Comment

by:zorvek (Kevin Jones)
ID: 20341596
The MatchRequired property does not work well in Excel.

Kevin
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now