Solved

need to disablechange events for user form combobox

Posted on 2013-11-09
10
174 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 46

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 46

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
Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

 
LVL 46

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
 
LVL 46

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 46

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 46

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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Introduction This Article briefly covers methods of calculating the NPV and IRR variants in Excel as well as the limitations in calculating and interpreting IRR results. Paraphrasing Richard Shockley, author of my favourite finance reference tex…
Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
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 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.

808 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