#30296
Yutaka Emura
Keymaster

The dialog box includes a Count Matches option. To achieve the same result in your macro, make sure to include the eeFindCount flag.
Using the macro below will give you the same outcome:


nFound = document.selection.Find("d", eeFindNext | eeFindReplaceSelOnly | eeFindCount);