Solved

Excel 2003: Combobox: Invalid Property Value

Posted on 2010-11-21
2
776 Views
Last Modified: 2012-05-10
If I make a combobox on a form. Set "Match Required" = True for that combobox and try to put an invalid value in the combobox I get the following message...

"Invalid Property Value".

This is not a intuitive message and if you have ever had multiple comboboxes on a form, the user won't know which one has the invalid entry

Is there a way to change this message? (i.e. "You have entered an invalid name in the name combobox, please select a name from the dropdown
0
Comment
Question by:ouestque
2 Comments
 
LVL 9

Accepted Solution

by:
Tom earned 500 total points
ID: 34184878
instead of forcing the combobox matching, Set the property to false

Check the 'change' event of the combobox  .matchfound
if the box's Text property matches with any element,

if it doesn't, send a custom msgbox and select a default value.

0
 

Author Closing Comment

by:ouestque
ID: 34187332
Cool. I didn't know there was a .matchfound event. Thanks!
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

What is a Form List Box? (skip if you know this) The forms List Box is the alternative to the ActiveX list box. If you are using excel 2007, you first make sure you have a developer tab (click the Orb)->"Excel Options"->Popular->"Show Developer tab…
Approximate matching with VLOOKUP and MATCH seems to me to be a greatly under-used technique, and one which is vital for getting good performance out of large lookups. Until recently I would always have advised using an exact match for simplicity an…
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

744 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

11 Experts available now in Live!

Get 1:1 Help Now