Find.MatchAllWordForms property (Word)

True if all forms of the text to find are found by the find operation (for instance, if the text to find is "sit," "sat" and "sitting" are found as well). Read/write Boolean.

Syntax

expression. MatchAllWordForms

expression An expression that returns a 'Find' object.

Remarks

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.

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

See also

Find Object

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.