Change tab color based on cell values across worksheets

OCP

New Member
Joined
Jun 29, 2011
Messages
2
Change tab color based on cell values across worksheets<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>
<o:p> </o:p>
I have a workbook in which I want to change tab colors based on cell values. All of the input cells are on the worksheet called “CustInfo.”<o:p></o:p>
<o:p> </o:p>
There are 3 cells that have values that – depending on the value or text – will change the tab color of 3 OTHER worksheets.<o:p></o:p>
<o:p> </o:p>
These cells on the CustInfo worksheet are:<o:p></o:p>
E6 with range name “ans_csr”<o:p></o:p>
E7 with range name “ans_lefv”<o:p></o:p>
E8 with range name “ans_locations”<o:p></o:p>
(Whether range names or just the cells are used doesn’t matter…)<o:p></o:p>
<o:p> </o:p>
So,<o:p></o:p>
<o:p> </o:p>
If CustInfo E6 (ans_csr) text value is “Y” the tab on sheet “LOA-S” is green (14), otherwise default gray.<o:p></o:p>
If CustInfo E7 (ans_lefv) text value is “Y” the tab on sheet “LEFV” is green (14), otherwise default gray.<o:p></o:p>
If CustInfo E8 (ans_locations) numerical value is >1 the tab on sheet “MLSO” is green (14), otherwise default gray.<o:p></o:p>
<o:p> </o:p>
I have done a great deal of searching to find the solution to this, but nothing quite meets my need. I have managed the tab color change, but the difficulty is getting the change to me more or less and on/off switch, based on the cell inputs.<o:p></o:p>
<o:p> </o:p>
Any help would be greatly appreciated!<o:p></o:p>
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().

Forum statistics

Threads
1,224,599
Messages
6,179,831
Members
452,946
Latest member
JoseDavid

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