Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Word
application.errors
conversions
docmanagement
drawing.graphics
formatting.longdocs
international
internet.assistant
mail
mailmerge.fields
menustoolbars
newusers
numbering
oleinterop
pagelayout
printingfonts
setup.networking
spelling.grammar
tables
vba.addins
vba.beginners
vba.customization
vba.general
vba.userforms
web.authoring
word6-7macros
word97vba
  
 
date: Sat, 16 Aug 2008 07:15:14 -0700 (PDT),    group: microsoft.public.word.vba.general        back       


Transfer a template   
I have a document (A) whose format I want to apply to a number of
existing documents (B and C)
Is this possible? How?

Grateful for all suggestions,

T.
date: Sat, 16 Aug 2008 07:15:14 -0700 (PDT)   author:   tony

Re: Transfer a template   
Assuming you have used the same style names etc., attach the document 
template to the other documents.
If you download the splitmerge add-in 
http://www.gmayor.com/individual_merge_letters.htm it includes a macro to 
make a template from the current document. If you use macro that you can 
attach that template.

-- 
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor -  Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>


tony wrote:
> I have a document (A) whose format I want to apply to a number of
> existing documents (B and C)
> Is this possible? How?
>
> Grateful for all suggestions,
>
> T.
date: Sat, 16 Aug 2008 17:40:05 +0300   author:   Graham Mayor

Re: Transfer a template   
On reflection the macro in that template is error trapped to work with merge 
documents so you would have to modify the code to work with a plain 
document.

-- 
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor -  Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>


Graham Mayor wrote:
> Assuming you have used the same style names etc., attach the document
> template to the other documents.
> If you download the splitmerge add-in
> http://www.gmayor.com/individual_merge_letters.htm it includes a
> macro to make a template from the current document. If you use macro
> that you can attach that template.
>
>
> tony wrote:
>> I have a document (A) whose format I want to apply to a number of
>> existing documents (B and C)
>> Is this possible? How?
>>
>> Grateful for all suggestions,
>>
>> T.
date: Sat, 16 Aug 2008 18:17:06 +0300   author:   Graham Mayor

Re: Transfer a template   
On Aug 16, 7:40 am, "Graham Mayor"  wrote:
> Assuming you have used the same style names etc., attach the document
> template to the other documents.


Thank you, Graham.
I created a.dot from the model document a.doc, but I'm not clear about
attaching a.dot to b.doc
Moreover, judging by the fact that fonts and other features of b.doc
are different from those of a.doc
(even though the outline/layout of the two is the same), I cannot
assume the same styles in both.
With this in mind, how can I determine the styles of various portions
of a.doc and transfer them to b.doc?

T.
date: Sat, 16 Aug 2008 17:11:35 -0700 (PDT)   author:   tony

Re: Transfer a template   
It is fairly straightforward to attach a template with vba

    With ActiveDocument
        .UpdateStylesOnOpen = True
        .AttachedTemplate = "D:\Word Templates\Templatename.dot"
    End With

however if the style names in the document don't match the stylenames in the 
template it will not achieve anything useful.

If you wish to replace stylenames in a document with stylenames in a 
different template, then you will have to know in advance which stylenames 
will be replaced with which.

You can also copy styles from one document to another eg

    Application.OrganizerCopy Source:="D:\Word Templates\Sample Style.dot", 
_
        Destination:="D:\My Documents\Test\Versions\Even\sample.doc", name:= 
_
        "Body Text", Object:=wdOrganizerObjectStyles

but unless the document you copy to has text formatted in those styles 
nothing will change.

What you cannot do is automatically reformat a document to match another 
document when the formatting styles are different in each.


-- 
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor -  Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>


tony wrote:
> On Aug 16, 7:40 am, "Graham Mayor"  wrote:
>> Assuming you have used the same style names etc., attach the document
>> template to the other documents.
>
>
> Thank you, Graham.
> I created a.dot from the model document a.doc, but I'm not clear about
> attaching a.dot to b.doc
> Moreover, judging by the fact that fonts and other features of b.doc
> are different from those of a.doc
> (even though the outline/layout of the two is the same), I cannot
> assume the same styles in both.
> With this in mind, how can I determine the styles of various portions
> of a.doc and transfer them to b.doc?
>
> T.
date: Sun, 17 Aug 2008 09:50:13 +0300   author:   Graham Mayor

Re: Transfer a template   
On Aug 16, 11:50 pm, "Graham Mayor"  wrote:
>
> What you cannot do is automatically reformat a document to match another
> document when the formatting styles are different in each.

Thet's good and categoric, Graham, which I appreciate. I'll learn a
little more about styles and do the job piecemeal.

Thanks again.

T.
date: Sun, 17 Aug 2008 07:16:21 -0700 (PDT)   author:   tony

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us