Hi Anton,
I can't find a way to set the option
"highlight all ..." in a macro.
It isn't of much use anyway,
as this so called discontiguous selection
can not, in my humble opinion, be accessed programmatically.
Try
msgbox selection.words.count
Whatever number of words is selected,
the msgbox always returns "1",
of course, if at least one string was found.
Therefore, what Graham and I suggested,
might be preferable.
--
Greetings from Bavaria, Germany
Helmut Weber, MVP WordVBA
Vista Small Business, Office XP
Jay Freedman - 17 Feb 2008 17:04 GMT
>Hi Anton,
>
[quoted text clipped - 14 lines]
>Therefore, what Graham and I suggested,
>might be preferable.
You're exactly correct, Helmut. VBA has very little understanding of
discontiguous selections (http://support.microsoft.com/?kbid=288424) and it
can't create them at all.
--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so all may benefit.