What I'm trying to accomplish:
Cells on a sheet contain conditional formatting that when given a
certain condition will change the interior color of that cell to
green. This workbook contains many sheets...so to make it quicker to
find those green cells, the related tab will also change to green.
Any ideas?
One workaround: You can use the worksheet_change event and check the
conditions programmatical. That is you reprogram the conditions of your
conditional format.
e.g.
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Cells.Count > 1 Then Exit Sub
If Intersect(Target, Me.Range("A1:A100")) Is Nothing Then Exit Sub
On Error GoTo CleanUp:
With Target
If .Value = 1 Then 'change this to your conditions
Application.EnableEvents = False
Activesheet.Tab.ColorIndex = 4
End If
End With
CleanUp:
Application.EnableEvents = True
End Sub
this test if a cell in the range A1:A100 is '1' and if yes changes the
tab color to green
--
Regards
Frank Kabel
Frankfurt, Germany