MatchAllWordForms Property

Microsoft Word Visual Basic

expression.MatchAllWordForms

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 searched for in a document.

Example

This example selects the next form of the word "sit" found in the selection or displays a message box if a form of "sit" isn't found.

With Selection.Find
    .MatchAllWordForms = True
    .Text = "sit"
    .Execute Format:=False
    If .Found = False Then MsgBox "Not Found"
End With