Selection.Find property (Word)

Returns a Find object that contains the criteria for a find operation. Read-only.

Syntax

expression.Find

expression A variable that represents a Selection object.

Remarks

The selection is changed if the find operation is successful.

Example

The following example searches forward through the document for the word "Microsoft." If the word is found, it is automatically selected.

With Selection.Find 
 .Forward = True 
 .ClearFormatting 
 .MatchWholeWord = True 
 .MatchCase = False 
 .Wrap = wdFindContinue 
 .Execute FindText:="Microsoft" 
End With

See also

Selection 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.