Private Sub Worksheet_Calculate()
Application.EnableEvents = False
Dim r As Range, c As Range, LRow As Long, i As Long, s As String
LRow = Cells(Rows.Count, "C").End(xlUp).Row
Set r = Range("A2:C" & LRow)
For Each c In Range("C1:C" & LRow)
If c.EntireRow.Hidden = False Then i = i + 1
Next c
With r
If i = LRow Then
.Interior.Color = xlNone
.Font.ColorIndex = 0
.Font.Bold = False
Else
With .Columns("A:B")
For Each c In Range("C2:C" & LRow)
If c.EntireRow.Hidden = False Then
s = UCase(c.Value)
Exit For
End If
Next c
If s = "TRUE" Then
.Interior.Color = vbGreen
.Font.Bold = True
Else
.Font.Color = vbRed
.Font.Bold = True
End If
End With
End If
End With
Application.EnableEvents = True
End Sub