RepeatFind

Syntax

RepeatFind

Remarks

Repeats the most recent EditFind or EditGoTo operation. Note that when an EditFind instruction is repeated, settings for .Direction, .WholeWord, .MatchCase, .PatternMatch, .Format, and .Wrap are all repeated.

Example

This example counts the number of times the word "success" occurs in the active document and then displays the result in a message box:


StartOfDocument
EditFind .Find = "success", .Direction = 0, .WholeWord = 1, \
    .MatchCase = 0, .Format = 0, .Wrap = 0
While EditFindFound()
    count = count + 1
    RepeatFind
Wend
MsgBox "The word " + Chr$(34) + "success" + Chr$(34) \
    + " occurs" + Str$(Count) + " times."

See Also

EditFind, EditGoTo, EditRepeat