MatchWildcards Property

Applies To

Find object.

Description

True if the text to find contains search wildcards. Corresponds to the Use wildcards check box in the Find and Replace dialog box (Edit menu). Read/write Boolean.

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

See Also

Execute method (Find object), Text property.

Example

This example finds and selects the next three-letter word that begins with "s" and ends with "t."

With Selection.Find
    .ClearFormatting
    .Text = "s?t"
    .MatchWildcards = True
    .MatchSoundsLike = False
    .MatchAllWordForms = False
    .Execute Format:=False, Forward:=True
End With