Solved

need to disablechange events for user form combobox

Posted on 2013-11-09
10
168 Views
Last Modified: 2013-11-22
Hi

I have a combobox (at B3) which includes the option to select 'other'. In this case an input box appears to allow the user to add a business name to the combobox's linked list (at column BJ).

The problem is that the change to the list triggers the change event and the input box reappears.

I thought this was solved yesterday, but the solution (enable.events =false....etc) only worked once.

Any help would be much appreciated
Dantastico
Assessment-Input2.xls
0
Comment
Question by:dantastico
  • 6
  • 3
10 Comments
 
LVL 45

Expert Comment

by:Martin Liss
ID: 39636380
How does this differ from your previous question?
0
 
LVL 18

Expert Comment

by:Steven Harris
ID: 39636388
Disregard the post...
0
 
LVL 45

Expert Comment

by:Martin Liss
ID: 39636392
Oh, I didn't read your question all the way.

In any case you don't have enableevents = False anywhere in your code that you posted.
0
 
LVL 45

Expert Comment

by:Martin Liss
ID: 39655414
Did my suggestion help you?
0
 

Author Comment

by:dantastico
ID: 39655737
It worked once. Then it never worked again.
I have read that for user forms (Although I am just using a form control on the worksheet)you need to set me.enable as boolean...or something to that effect, but It's a little beyond me at the moment.
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 45

Accepted Solution

by:
Martin Liss earned 500 total points
ID: 39656851
A solution to the problem is attached. It involves a boolean variable I added named bAddingToList.

BTW if in the future you ever want to use EnableEvents there's no need to do Public EnableEvents As Boolean. EnableEvents is a built-in property of Excel so all you need to do is Application.EnableEvents = True (or of course False).
Q-28290075.xls
0
 

Author Comment

by:dantastico
ID: 39656974
Hi Martin

Yes.....Yes that's it!!!!! Awesome, you truly are a hero.

Thanks very much.

Dan
0
 
LVL 45

Expert Comment

by:Martin Liss
ID: 39657033
And so one final step:)
0
 

Author Closing Comment

by:dantastico
ID: 39668368
Perfect. That works a treat!

Thanks
0
 
LVL 45

Expert Comment

by:Martin Liss
ID: 39669370
You're welcome and I'm glad I was able to help.

Marty - MVP 2009 to 2013
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

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 will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.

757 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

21 Experts available now in Live!

Get 1:1 Help Now