To be clear, I don't want to modify the text in the cell that is being conditionally formatted, I want to modify the text string in the conditional format rule.
This is a small (relevant) portion of what you get when you record a macro.
Where you see "CHANGE THIS TEXT", that is what I want to change. I need to change it in 100s of rules but I'm testing on 1 cell at the moment.
Selection.FormatConditions(1).StopIfTrue = False
Range("E16").Select
Selection.FormatConditions.Add Type:=xlTextString, String:= _
"CHANGE THIS TEXT", TextOperator:=xlContains
Selection.FormatConditions(Selection.FormatConditions.Count).SetFirstPriority
With Selection.FormatConditions(1).Interior
.PatternColorIndex = xlAutomatic
.Color = 65535
.TintAndShade = 0
End With
CF.PNG
This does nothing
ActiveSheet.Range("e16").FormatConditions(1) _
.Modify xlTextString, Text, "=TEST CHANGE TEXT"
Bookmarks