I need to highlight cells in each row that are in excess of the value in Column AU for that row of data; then do this for the next row, but I cannot get the value of column AU
to be iterative meaning changing to the next row's value.
Let me know what I'm doing wrong here.
Sub highlight()
Application.ScreenUpdating = False
Dim myRange As Range
Dim i As Long, j As Long
Set myRange = Range("F11:AP20")
For n = 11 To 20
For i = 1 To myRange.Rows.Count
For j = 1 To myRange.Columns.Count
If myRange.Cells(i, j).Value < Range(AUn).Value Then
myRange.Cells(i, j).Interior.Color = 65535
Else
myRange.Cells(i, j).Interior.ColorIndex = 2
End If
Next j
Next i
Next n
End Sub