Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
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
Medium Priority
?
181 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 2000 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
This article describes a serious pitfall that can happen when deleting shapes using VBA.
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

721 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