I tried to highlight all phrases in specific cells with a given condition using VBA.
I had trouble with Vietnamese words because VBA does not support it.
Sub HighlightWordOrPhrase()
'select the cells you want to highlight, then run this macro
Const wrd As String = " có th? "
'The word I need to highlight is "có thể" but it displays " có th? " instead of " có thể "
Dim c As Range, x As Long
For Each c In Selection
x = InStr(1, c.Value, wrd, vbTextCompare)
If x > 0 Then
Do
c.Characters(x, Len(wrd)).Font.Color = vbRed
c.Characters(x, Len(wrd)).Font.Bold = True
x = InStr(x + Len(wrd) - 1, c.Value, wrd, vbTextCompare)
Loop While x > 0
End If
Next c
End Sub