Hi All,

I want to copy one single style document A to document B.
I've found some article to update all style from the attached template to
the activedocument. But I need the logic to copy one single style.

Actually, I can copy the text from the source document with that particular
style and copy it to the target document. However, I would like not to touch
or change the text within the target document.

Is that any way that I could do it ? Many Thanks

Re: Copy one single style from another document or template by Cindy

Cindy
Wed Jul 23 03:19:31 PDT 2008

Hi =?Utf-8?B?dmJhTk9PQg==?=,

> I want to copy one single style document A to document B.
> I've found some article to update all style from the attached template to
> the activedocument. But I need the logic to copy one single style.
>
Look up the Application.Organizer. That will let you copy single styles
between documents.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :-)


Re: Copy one single style from another document or template by vbaNOOB

vbaNOOB
Thu Jul 24 01:26:00 PDT 2008

Hi,

Thanks for your reply. I'm quite new to vba and programming
I do find a object called WdOrganizerObject, but I dont know how to use it.

Could you please give more hint on this? Many Thanks

"Cindy M." wrote:

> Hi =?Utf-8?B?dmJhTk9PQg==?=,
>
> > I want to copy one single style document A to document B.
> > I've found some article to update all style from the attached template to
> > the activedocument. But I need the logic to copy one single style.
> >
> Look up the Application.Organizer. That will let you copy single styles
> between documents.
>
> Cindy Meister
> INTER-Solutions, Switzerland
> http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
> http://www.word.mvps.org
>
> This reply is posted in the Newsgroup; please post any follow question or
> reply in the newsgroup and not by e-mail :-)
>
>

Re: Copy one single style from another document or template by Cindy

Cindy
Thu Jul 24 07:47:40 PDT 2008

Hi =?Utf-8?B?dmJhTk9PQg==?=,

> I do find a object called WdOrganizerObject, but I dont know how to use it.
>
Something like this

Application.OrganizerCopy Source:="PathToDoc1" Destination:="PathToDoc2",
Name:="NameOfStyle", Object:=wdOrganizerObjectStyles

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :-)


Re: Copy one single style from another document or template by vbaNOOB

vbaNOOB
Thu Jul 24 21:21:03 PDT 2008

Thanks alot. You are very helpful

"Cindy M." wrote:

> Hi =?Utf-8?B?dmJhTk9PQg==?=,
>
> > I do find a object called WdOrganizerObject, but I dont know how to use it.
> >
> Something like this
>
> Application.OrganizerCopy Source:="PathToDoc1" Destination:="PathToDoc2",
> Name:="NameOfStyle", Object:=wdOrganizerObjectStyles
>
> Cindy Meister
> INTER-Solutions, Switzerland
> http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
> http://www.word.mvps.org
>
> This reply is posted in the Newsgroup; please post any follow question or
> reply in the newsgroup and not by e-mail :-)
>
>