Hi,
Here's a version of mine modified. Just wondering though why not just use conditional formatting?
Private Sub Worksheet_Change(ByVal Target As Range)
Dim x As Long
Application.ScreenUpdating = False
For x = Range("G" & "20000").End(xlUp).Row To 1 Step -1
If Cells(x, 7).Value = "TOTALS - - >" Then
Application.Rows(x).Font.Color = 1
Application.Rows(x).Font.Bold = True
Application.Rows(x).Font.Size = 20
ElseIf Cells(x, 7).Value = "SUBTOTALS - - >" Then
Application.Rows(x).Font.Color = 1
Application.Rows(x).Font.Bold = True
Application.Rows(x).Font.Size = 15
Else
Application.Rows(x).Font.Color = 3
Application.Rows(x).Font.Bold = True
Application.Rows(x).Font.Size = 10
End If
Next x
Application.ScreenUpdating = True
End Sub
\
HTH
Steve
Bookmarks