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

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.

Forum statistics

Threads
1,223,214
Messages
6,170,771
Members
452,353
Latest member
strainu

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