Execute Method (Find Object) Example
This example finds and selects the next occurrence of the word "library."
With Selection.Find
.ClearFormatting
.MatchWholeWord = True
.MatchCase = False
.Execute FindText:="library"
End With
This example finds all occurrences of the word "hi" in the active document and replaces each occurrence with "hello."
Set myRange = ActiveDocument.Content
myRange.Find.Execute FindText:="hi", _
ReplaceWith:="hello", Replace:=wdReplaceAll