Check validation on SelectionChange

V

vermutmb

I have implemented Debra Dalgleish's terrific combo box validation
macro (http://www.contextures.com/xlDataVal11.html), but have run
across a problem. I want to limit the values accepted from the combo
box to the validation list.

I have attempted to make this happen by changing MatchRequired to True,
but this doesn't seem to be working. The only solution I found was to
change the style to "2- fmStyleDropDownList," but I am dissatisfied
with this option as it seems to preclude the user from Escaping out of
the list and leaving the value blank.

Ideally, I'd like for Excel to evaluate the value in the combo box and
provide a specific error message to the user if they have entered an
invalid choice. I tried to implement a TempCombo_change macro, but it
doesn't seem to be called, perhaps because it is a temporary combo box
(cboTemp) that is called by the BeforeDoubleClick Event.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top