XL Forum_gmccray_VBA conditional formatting a range
----------------------
Hi, I'm afraid your code is not looping, because the "For" statements, variable "Counter" is not in the loop, therefore no looping takes place.
Look at your modified code, and you will see what is required, for it to work.
I've assumed that sheet "O7 vs O8" is the activesheet.
Dim cCount As Integer, Counter As Integer
cCount = 100
For Counter = 2 To cCount
If Range("AQ" & Counter).Value = "D" Then
Range("A" & Counter, "C" & Counter).Font.Color = vbRed
Range("A" & Counter, "C" & Counter).Font.Bold = True
ElseIf Range("AQ" & Counter).Value = "N" Then
Range("A" & Counter, "C" & Counter).Font.Color = vbBlack
Range("A" & Counter, "C" & Counter).Font.Bold = False
End If
Next Counter
Regards Mick
Bookmarks