You might apply some formatting that's unlikely to be used (finally a use for "marching ants" text effects?), and then use "Find" to loop all ranges that have that formatting applied, removing it in the process.
Klaus
> >> If I'm using ActiveWindow.Selection to get a selection, I only get the
> >> last
[quoted text clipped - 4 lines]
> >As far as I know, you can't. VBA doesn't provide access to the multiple
> >selections.
> See http://support.microsoft.com/?kbid=288424 for Microsoft's advice
> on this subject.
[quoted text clipped - 3 lines]
> Jay Freedman
> Microsoft Word MVP FAQ: http://word.mvps.org
Inbar - 09 Mar 2005 19:11 GMT
Klaus,
OK, let's assume I do that. I run "Find" and then what? How to I get all the
"range" objects for everything that was found? I don't really see how this
helps me. I will still have a multiple selection that I cannot use...
> You might apply some formatting that's unlikely to be used (finally a use for "marching ants" text effects?), and then use "Find" to loop all ranges that have that formatting applied, removing it in the process.
>
[quoted text clipped - 16 lines]
> > Jay Freedman
> > Microsoft Word MVP FAQ: http://word.mvps.org
Jonathan West - 10 Mar 2005 00:22 GMT
> Klaus,
> OK, let's assume I do that. I run "Find" and then what? How to I get all
> the
> "range" objects for everything that was found? I don't really see how this
> helps me. I will still have a multiple selection that I cannot use...
if you apply the Marching Red Ants character format to the Selection, it
does in fact apply it to all areas of a multiple selection.
You can then do a Find, searching for examples of Marching Red Ants, adding
each area found to an array or collection of Range objects, removing the Red
Ants format in the process
You can then maniplate those ranges in any way you want.

Signature
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup