Hi,
How can I apply a document template which was stored in a certain location
to any word document. Is it possible to do this using VBA. If yes, How?

Re: Template by Peter

Peter
Thu Apr 27 14:29:52 CDT 2006

ActiveDocument.AttachedTemplate = <full path to your template>

hth,

-Peter

"Ram" <Ram@discussions.microsoft.com> wrote in message
news:BF37EAC7-226B-47EC-8B35-C2E802FAECB4@microsoft.com...
> Hi,
> How can I apply a document template which was stored in a certain
location
> to any word document. Is it possible to do this using VBA. If yes, How?


Re: Template by Ram

Ram
Thu Apr 27 18:02:01 CDT 2006

Hi,
It's not working. I have created a document template with some text in
the header. So I want to apply this template to any word doc. I did what you
said using VBA. But I didn't see the template getting applied. Is there
something else to do before I run the VBA code.

"Peter" wrote:

> ActiveDocument.AttachedTemplate = <full path to your template>
>
> hth,
>
> -Peter
>
> "Ram" <Ram@discussions.microsoft.com> wrote in message
> news:BF37EAC7-226B-47EC-8B35-C2E802FAECB4@microsoft.com...
> > Hi,
> > How can I apply a document template which was stored in a certain
> location
> > to any word document. Is it possible to do this using VBA. If yes, How?
>
>

Re: Template by Charles

Charles
Thu Apr 27 23:38:27 CDT 2006

That isn't how templates work. You need to learn Word before you try
programming it.

http://www.shaunakelly.com/word/templaterelations/index.html

http://www.shaunakelly.com/word/attachtemplate/index.html
--
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://word.mvps.org/FAQs/ which is awesome!

My criminal defense site: http://addbalance.com
--------- --------- --------- --------- --------- ---------
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.


"Ram" <Ram@discussions.microsoft.com> wrote in message
news:EE5A0331-C374-40BC-A27A-7F6B5A3561AE@microsoft.com...
> Hi,
> It's not working. I have created a document template with some text in
> the header. So I want to apply this template to any word doc. I did what
> you
> said using VBA. But I didn't see the template getting applied. Is there
> something else to do before I run the VBA code.
>
> "Peter" wrote:
>
>> ActiveDocument.AttachedTemplate = <full path to your template>
>>
>> hth,
>>
>> -Peter
>>
>> "Ram" <Ram@discussions.microsoft.com> wrote in message
>> news:BF37EAC7-226B-47EC-8B35-C2E802FAECB4@microsoft.com...
>> > Hi,
>> > How can I apply a document template which was stored in a certain
>> location
>> > to any word document. Is it possible to do this using VBA. If yes,
>> > How?
>>
>>



Re: Template by Ram

Ram
Fri Apr 28 07:22:02 CDT 2006

I know that template is more of page settings and styles Thanks for the link.
I am inserting the header with a macro. Wondering if it is possible with a
new template.


"Charles Kenyon" wrote:

> That isn't how templates work. You need to learn Word before you try
> programming it.
>
> http://www.shaunakelly.com/word/templaterelations/index.html
>
> http://www.shaunakelly.com/word/attachtemplate/index.html
> --
> 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://word.mvps.org/FAQs/ which is awesome!
>
> My criminal defense site: http://addbalance.com
> --------- --------- --------- --------- --------- ---------
> 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.
>
>
> "Ram" <Ram@discussions.microsoft.com> wrote in message
> news:EE5A0331-C374-40BC-A27A-7F6B5A3561AE@microsoft.com...
> > Hi,
> > It's not working. I have created a document template with some text in
> > the header. So I want to apply this template to any word doc. I did what
> > you
> > said using VBA. But I didn't see the template getting applied. Is there
> > something else to do before I run the VBA code.
> >
> > "Peter" wrote:
> >
> >> ActiveDocument.AttachedTemplate = <full path to your template>
> >>
> >> hth,
> >>
> >> -Peter
> >>
> >> "Ram" <Ram@discussions.microsoft.com> wrote in message
> >> news:BF37EAC7-226B-47EC-8B35-C2E802FAECB4@microsoft.com...
> >> > Hi,
> >> > How can I apply a document template which was stored in a certain
> >> location
> >> > to any word document. Is it possible to do this using VBA. If yes,
> >> > How?
> >>
> >>
>
>
>

Re: Template by Charles

Charles
Fri Apr 28 12:26:49 CDT 2006

Yes, but which header? Every Word document has at least three possible
headers. Every section break adds an additional three possibilities. Your
macro needs to be able to figure this out. Learn Word first.

--
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://word.mvps.org/FAQs/ which is awesome!

My criminal defense site: http://addbalance.com
--------- --------- --------- --------- --------- ---------
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.



"Ram" <Ram@discussions.microsoft.com> wrote in message
news:216FFCB4-8CB9-40D3-A662-80EE26533D0B@microsoft.com...
>I know that template is more of page settings and styles Thanks for the
>link.
> I am inserting the header with a macro. Wondering if it is possible with a
> new template.
>
>
> "Charles Kenyon" wrote:
>
>> That isn't how templates work. You need to learn Word before you try
>> programming it.
>>
>> http://www.shaunakelly.com/word/templaterelations/index.html
>>
>> http://www.shaunakelly.com/word/attachtemplate/index.html
>> --
>> 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://word.mvps.org/FAQs/ which is awesome!
>>
>> My criminal defense site: http://addbalance.com
>> --------- --------- --------- --------- --------- ---------
>> 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.
>>
>>
>> "Ram" <Ram@discussions.microsoft.com> wrote in message
>> news:EE5A0331-C374-40BC-A27A-7F6B5A3561AE@microsoft.com...
>> > Hi,
>> > It's not working. I have created a document template with some text
>> > in
>> > the header. So I want to apply this template to any word doc. I did
>> > what
>> > you
>> > said using VBA. But I didn't see the template getting applied. Is there
>> > something else to do before I run the VBA code.
>> >
>> > "Peter" wrote:
>> >
>> >> ActiveDocument.AttachedTemplate = <full path to your template>
>> >>
>> >> hth,
>> >>
>> >> -Peter
>> >>
>> >> "Ram" <Ram@discussions.microsoft.com> wrote in message
>> >> news:BF37EAC7-226B-47EC-8B35-C2E802FAECB4@microsoft.com...
>> >> > Hi,
>> >> > How can I apply a document template which was stored in a
>> >> > certain
>> >> location
>> >> > to any word document. Is it possible to do this using VBA. If
>> >> > yes,
>> >> > How?
>> >>
>> >>
>>
>>
>>