VBA Code for Changing Tab Color Based Off List in Data Validation

systemsrool

New Member
Joined
Nov 5, 2015
Messages
14
Hello,

I have a list (drop-down menu) in Cell B7 on my "Customer Info" tab that has 4 options (Flow Rack, Workstation, Machine Guarding, and Other (custom)).

When I select Flow Rack in the list I want the Flow Rack tab to turn green and the following tabs turn red.

Basically; If(B7="Workstation") then... Tab "Workstation" = green.. and tab Flow Rack, Machine Guarding, and Other (custom) = red.

Customer Info should stay white.

All help would be much appreciated. Thank you in advance.
fe28291304.png
bac625f1d5.png
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.

Forum statistics

Threads
1,216,075
Messages
6,128,668
Members
449,463
Latest member
Jojomen56

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