ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Tab Color Changes depending on value of a cell (https://www.excelbanter.com/excel-discussion-misc-queries/201976-tab-color-changes-depending-value-cell.html)

Thiago

Tab Color Changes depending on value of a cell
 
Is there a way to automatically change the tab color depending on the value
of a cell

Don Guillett

Tab Color Changes depending on value of a cell
 
You gave NO detail but this will change tab color to number entered in cell
d1.
Right click sheet tabview codeinsert this

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address < "$D$1" Then Exit Sub
Me.Tab.ColorIndex = Target
End Sub

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Thiago" wrote in message
...
Is there a way to automatically change the tab color depending on the
value
of a cell




All times are GMT +1. The time now is 06:52 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com