Hello,

We use Word 2000. I need to create a macro that will copy
all the styles from a template to the ActiveDocument. I
can create a dialog box where the user can specify which
template, but I don't know how to copy all the styles from
that template to the ActiveDocument. When I just record
the keystrokes, it does each style individually. And Help
shows only how to do it individually. I want to copy all
of the styles as a group to the Activedocument. Is this
possible?

Thank you in advance.

Mary

Re: copy styles macro by Word

Word
Mon Nov 10 01:10:26 CST 2003

G'day "Mary" <anonymous@discussions.microsoft.com>,

I worked around this by having macros that define my style sets for
me. Its a "user-implemented" style gallery. I dont copy, I set ;-)

You could iterate every present style in the source document and then
set it in the target.


"Mary" <anonymous@discussions.microsoft.com> was spinning this yarn:

>Hello,
>
>We use Word 2000. I need to create a macro that will copy
>all the styles from a template to the ActiveDocument. I
>can create a dialog box where the user can specify which
>template, but I don't know how to copy all the styles from
>that template to the ActiveDocument. When I just record
>the keystrokes, it does each style individually. And Help
>shows only how to do it individually. I want to copy all
>of the styles as a group to the Activedocument. Is this
>possible?
>
>Thank you in advance.
>
>Mary

Steve Hudson

Word Heretic, Sydney, Australia
Tricky stuff with Word or words for you.
wordheretic.com

Replies offlist may require payment.