Style duplication/copying

G

GArrow

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?
 
M

Martin Seelhofer

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
 
C

Charles Kenyon

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top