Forward Property

True if the find operation searches forward through the document. False if it searches backward through the document. Read/write Boolean.


This example replaces the next occurrence of the word "hi" in the selection with "hello."

With Selection.Find
    .Forward = True
    .Text = "hi"
    .Replacement.Text = "hello"
    .Execute Replace:=wdReplaceOne
End With

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

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

Applies to | Find Object

See Also | MailMessage Object | Post Method | Reply Method | Wrap Property