Nevermind - I forgot you could specify a style for the find method.
>> When viewing the document styles using the task pane, it is possible to
>> select all instances of text using a specific style - how do I replicate
>> that
>> in code? I tried recording a macro whilst using the task pane to no
>> avail.
> Nevermind - I forgot you could specify a style for the find method.
Hi Daren,
The command would be WordBasic.SelectSimilarFormatting
That works with manual formatting (the "pseudo-styles" that you see in the
"Styles and formatting" pane with "Keep track of formatting" on), too.
Greetings,
Klaus
Daren - 20 Jan 2006 21:23 GMT
Thanks for the reply.
> >> When viewing the document styles using the task pane, it is possible to
> >> select all instances of text using a specific style - how do I replicate
[quoted text clipped - 13 lines]
> Greetings,
> Klaus
Klaus Linke - 20 Jan 2006 21:30 GMT
You're welcome! I never tried which is faster... but use "Find", too, since
it gives you more control.
Greetings,
Klaus
Klaus Linke - 20 Jan 2006 21:33 GMT
> I never tried which is faster...
Argh... "Find" is faster.
"Select similar formatting" often takes minutes on documents of some size.
Klaus