MatchSoundsLike Property

Microsoft Word Visual Basic

MatchSoundsLike Property

       

True if words that sound similar to the text to find are returned by the find operation. Read/write Boolean.

expression.MatchSoundsLike

expression   Required. An expression that returns a Find object.

Remarks

Use the Text property of the Find object or the FindText argument with the Execute method to specify the text to be located in a document.

Example

This example selects the next word that sounds like the word "fun" (for instance, "funny") in the selection.

With Selection.Find
    .ClearFormatting
    .Text = "fun"
    .MatchFuzzy = False
    .MatchSoundsLike = True
    .Execute Format:=False, Forward:=True, Wrap:=wdFindContinue
End With