Ah, i understand now.
Sort of works, but only on the first cell (it highlights it because its a column header that doesnt contain the string "recovery")
the loop seems to bail out after the first cell... heres the complete code so far... any thoughts?
Sub HighlightCVolume()
Dim oCell As Excel.Range
Dim oSheet As Excel.Worksheet
Set oSheet = ActiveSheet
For Each oCell In oSheet.Range("F:F").SpecialCells(xlCellTypeConstan ts)
If InStr(1, UCase$(oCell.Value), "REC", vbTextCompare) = 0 Then
With oCell.Interior
.ColorIndex = 4
.Pattern = xlSolid
End With
End If
Next
End Sub
|