There does not seem to be any way to programatically copy one style, or part
of a style, to another style. Nor a way to "update to match selection" as one
can do from the GUI. I have written some tedious code to clone the data
property by property, but there should be a better way. Is there?
Martin Seelhofer - 02 Dec 2004 22:14 GMT
Hi there
> There does not seem to be any way to programatically copy one style, or
> part
> of a style, to another style. Nor a way to "update to match selection" as
> one
> can do from the GUI. I have written some tedious code to clone the data
> property by property, but there should be a better way. Is there?
Maybe Selection.CopyFormat and Selection.PasteFormat can give
a little help...
Cheers,
Martin
Charles Kenyon - 06 Dec 2004 16:39 GMT
There is a way. I don't know it but suspect it comes from getting the
attributes of a particular style, saving them in an array and applying them
to another or new style. I know there is a way because the WOPR utility
includes a style copier that I use.

Signature
Charles Kenyon
Word New User FAQ & Web Directory: http://addbalance.com/word
Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide) http://addbalance.com/usersguide
See also the MVP FAQ: http://www.mvps.org/word which is awesome!
--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.
> There does not seem to be any way to programatically copy one style, or
> part
> of a style, to another style. Nor a way to "update to match selection" as
> one
> can do from the GUI. I have written some tedious code to clone the data
> property by property, but there should be a better way. Is there?