
Selection of paragraph styles in one go
Hi, Ali,
Unfortunately, it's not possible with VBA.
According to
http://support.microsoft.com/default.aspx?scid=kb;EN-US;q288424,
--------------
Limitations for Working with Discontiguous Selections Using the Word
Object Model
You cannot select a discontiguous range programmatically by using the
Word 2002 object model. A discontiguous selection may only be created
by the user in the Word UI.
A Range object cannot contain multiple subranges. Therefore, if the
current selection is discontiguous, Selection.Range will return the
last subrange that the user selected.
--------------
There's more, but that covers your question...
--
Regards,
Jay Freedman
Microsoft Word MVP Word MVP FAQ site: http://www.mvps.org/word
Quote:
> Hi all,
> In Word XP
> By right clicking on a style name, and choosing "select all
occurences" (I
> don't know exactly how it's called in german, I have Word XP in
german), you
> can select all the text which is in the style wanted and delete the
text, or
> reapply another style...
> I would like to do the same in VBA, how can I do ? (I was trying to
record a
> macro, it seems to me that this part is not recorded?)
> Thanks in advance,
> Ali