How to Stop Active X Combo Box Firing when list source changes

LahnyKate

New Member
Joined
Oct 26, 2018
Messages
1
Hello All,

First time posting. I am only a beginner with VBA.

I have a number of active x combo boxes and they are firing the vba when the list source changes.

Can anyone help on how to stop this happening?

This is what I currently have to try and stop but is not working. When you click on the combo box and select an option out of drop down list, this is the only time I want this to fire, unless being called from another macro.


Private Sub ComboBxCustomerID_Click()

bmakeithappen = True
Call ComboBxCustomerID_Change

End Sub


Private Sub ComboBxCustomerID_Change()


If bmakeithappen = False Then Exit Sub

Application.ScreenUpdating = False 'Turn Screen Updating Off
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Hi & welcome to the board.
Why not put all the code from the Change Event into the Click Event and get rid of the Change Event
 
Upvote 0

Forum statistics

Threads
1,215,455
Messages
6,124,937
Members
449,196
Latest member
Maxkapoor

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top