Trigger Macros on ComboBox Selection

jacobcurties

New Member
Joined
Dec 14, 2011
Messages
1
Hello Everyone,

Please help me to trigger a macro according to the selection in the ComboBox.

Details:
ComboBox Values: Day Shift, Night Shift
Macro Names: DayShift, NightShift

Expected Result:
When "Day Shift" is selected, the active cell colour should go orange via macro "DayShift".
When "Night Shift" is selected, the active cell colour should go grey via macro "NightShift".

Managed to do the following:
Record Macro for the same and triggered the same according to the ComboBox selection.

Issue is:
When I select "Day Shift" the macro triggers successfully on the active cell. If I choose the same option "Day Shift" again on another cell immediately, nothing happens. However the macro works fine if I change the selection to "Night Shift" and come back to "Day Shift".

Any ideas ! Please let me know if I need to be more clear on the issue.
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand

Forum statistics

Threads
1,215,537
Messages
6,125,390
Members
449,222
Latest member
taner zz

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