Ни один из MatchCase, MatchWholeWord, MatchAllWordForms и MatchSoundsLike не работает с подстановочными знаками. Соответственно, код может быть уменьшен до:
Sub RemoveTo()
With Selection.Find
.ClearFormatting
.Replacement.ClearFormatting
.Text = "To[ =]@[_]{1,}"
.Replacement.Text = ""
.Forward = True
.Format = False
.Wrap = wdFindContinue
.MatchWildcards = True
.Execute Replace:=wdReplaceAll
End With
End Sub
или даже:
Sub RemoveTo()
With Selection.Find
.ClearFormatting
.Replacement.ClearFormatting
.Execute FindText:="To[ =]@[_]{1,}", ReplaceWith:="", MatchWildcards:=True, _
Forward:=True, Format:=False, Wrap:=wdFindContinue, Replace:=wdReplaceAll
End With
End Sub