kialexander
New Member
- Joined
- Jan 11, 2018
- Messages
- 2
Hi,
I am currently using the vba code below to turn the sentence "Deal capacity over 95%" to red, however, the issue I am facing is that it turns all text in that cell red, not just the statement "Deal capacity over 95%". Is there a way I can stop the whole cell text turning red and just turn the statement "Deal capacity over 95%" red instead?
Columns("H:H").Select
With Application.ReplaceFormat.Font
.Superscript = False
.Subscript = False
.Color = 255
.TintAndShade = 0
End With
Selection.Replace What:="Deal capacity over 95%", _
Replacement:="Deal capacity over 95%", LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
ReplaceFormat:=True
Range("H6").Select
Many Thanks,
Kirstie
I am currently using the vba code below to turn the sentence "Deal capacity over 95%" to red, however, the issue I am facing is that it turns all text in that cell red, not just the statement "Deal capacity over 95%". Is there a way I can stop the whole cell text turning red and just turn the statement "Deal capacity over 95%" red instead?
Columns("H:H").Select
With Application.ReplaceFormat.Font
.Superscript = False
.Subscript = False
.Color = 255
.TintAndShade = 0
End With
Selection.Replace What:="Deal capacity over 95%", _
Replacement:="Deal capacity over 95%", LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
ReplaceFormat:=True
Range("H6").Select
Many Thanks,
Kirstie