To find and color a phrase in the text of a Word table cell, I do this:
- Code: Select all Expand view
- oTb:Item(n).Cell(x,y):Select()
oWrd:Selection.Find:Execute("MyText", .F., .T.)
oWrd:Selection.Range:HighLightColorIndex=CLR_RED
How can this be done if the text contains several identical phrases ?