Hi guys & girls,
I need to get a row to highlight if one cell has a difference compared to another. The coding below works for the first cell, but others in the sequence do not change. I know the Range("A5:Z5") is wrong, but the loop is not working either, it's running the If statement even if the date in R7 is today.
For Each c In Range("R5:R10")
If c.Text < "Today()" Then
Range("A5:Z5").Select
With Selection.Interior
.ColorIndex = 3
.Pattern = xlSolid
End With
End If
Next c
Any and all help appreciated.
Thanks
I need to get a row to highlight if one cell has a difference compared to another. The coding below works for the first cell, but others in the sequence do not change. I know the Range("A5:Z5") is wrong, but the loop is not working either, it's running the If statement even if the date in R7 is today.
For Each c In Range("R5:R10")
If c.Text < "Today()" Then
Range("A5:Z5").Select
With Selection.Interior
.ColorIndex = 3
.Pattern = xlSolid
End With
End If
Next c
Any and all help appreciated.
Thanks