Results 1 to 2 of 2
2006-07-24, 11:20 #1
- Join Date
- Jan 2001
- Karlsruhe, Germany
- Thanked 0 Times in 0 Posts
'Highlight all...' checkbox in Find dialog (Word 2002)
How can I execute the same search I would get if I check the "Highlight all items found" checkbox on the Find tabcard of the Find-Replace dialog? There is nothing promising on the help list I get while typing "Selection.Find. "; that list has things for other options on that dialog, like like ".MatchCase" As a last resolt, I could display the dialog with "Dialogs(wdDialogEditFind).Show" and use sendkeys to move to that field (send one tab). But once I am there, I only know how to toggle that chekbox, not set or read it
Any help would be greatly appreciated
PS the search is for all occurances of a paragraph Style. The occurances are actually contiguous, but for some reason, Find.Execute only finds them one paragraph at a time.
2006-07-24, 11:31 #2
- Join Date
- Mar 2002
- Thanked 30 Times in 30 Posts
Re: 'Highlight all...' checkbox in Find dialog (Word 2002)
SendKeys is the only way. Microsoft hasn't made the "Highlight all items found" option available in VBA.