Tab Color Changes depending on value of a cell

  • Thread starter Thread starter Thiago
  • Start date Start date
T

Thiago

Is there a way to automatically change the tab color depending on the value
of a cell
 
You gave NO detail but this will change tab color to number entered in cell
d1.
Right click sheet tab>view code>insert this

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top