Good morning
I'm looking for suggestions on how I might change the font color based on the first word (or two) so that I can highlight cells that start "Optional" or "Provisional Sum" in red. The first problem I'm having is searching with partial text. (not sure if my code beyond that works or not)?
I'm looking for suggestions on how I might change the font color based on the first word (or two) so that I can highlight cells that start "Optional" or "Provisional Sum" in red. The first problem I'm having is searching with partial text. (not sure if my code beyond that works or not)?
VBA Code:
Sub FindStringSOW()
Dim c As Range
Dim firstAddress As String
With ActiveSheet.Range("C1:C100")
Set c = .Find("Optional:** ", LookIn:=xlValues)
If Not c Is Nothing Then
firstAddress = c.Address
Do
c.font = vbRed
Set c = .FindNext(c)
Loop While Not c Is Nothing
End If
End With
End Sub
Last edited by a moderator: