OnAction not immediate in custom toolbar

imnie

New Member
Joined
Apr 21, 2002
Messages
22
Hi everyone,

I have created a custom toolbar that only contains a dropdown. The user selects a month from the dropdown and then the OnAction property is set to run another macro. For some reason the call is not being completed. Any suggestions for why this might be?

Thanks for any help.
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.

Andrew Poulsom

MrExcel MVP
Joined
Jul 21, 2002
Messages
73,092
Have a look in Help at the Change Event of the CommandBarComboBox Object. There is an example showing how to get the combo box to respond to user interaction.
 

imnie

New Member
Joined
Apr 21, 2002
Messages
22
On 2002-09-23 09:57, Andrew Poulsom wrote:
Have a look in Help at the Change Event of the CommandBarComboBox Object. There is an example showing how to get the combo box to respond to user interaction.

Thanks...this is still a little over my head though. When I tried to install and run the example (to see how it worked), the compiler didn't recognize "ComboBoxHandler" as a defined type. Is there a reference I need to have selected?
 

Andrew Poulsom

MrExcel MVP
Joined
Jul 21, 2002
Messages
73,092
Well, I must admit I didn't try it and it seems the example is somewhat lacking.

I think the Class Module needs to be named ComboBoxHandler (not eg Class1).

Give that a go and good luck!
 

Forum statistics

Threads
1,144,508
Messages
5,724,767
Members
422,577
Latest member
kayth891

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
Top