Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / April 2006

Tip: Looking for answers? Try searching our database.

Template

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ram - 27 Apr 2006 19:41 GMT
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?
Peter - 27 Apr 2006 20:29 GMT
ActiveDocument.AttachedTemplate = <full path to your template>

hth,

-Peter

> 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?
Ram - 28 Apr 2006 00:02 GMT
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.

> ActiveDocument.AttachedTemplate = <full path to your template>
>
[quoted text clipped - 6 lines]
> location
> >   to any word document.  Is it possible to do this using VBA. If yes, How?
Charles Kenyon - 28 Apr 2006 05:38 GMT
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
Signature

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.

> Hi,
>   It's not working. I have created a document template with some text in
[quoted text clipped - 14 lines]
>> >   to any word document.  Is it possible to do this using VBA. If yes,
>> > How?
Ram - 28 Apr 2006 13:22 GMT
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.

> That isn't how templates work. You need to learn Word before you try
> programming it.
[quoted text clipped - 20 lines]
> >> >   to any word document.  Is it possible to do this using VBA. If yes,
> >> > How?
Charles Kenyon - 28 Apr 2006 18:26 GMT
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.

Signature

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.

>I know that template is more of page settings and styles Thanks for the
>link.
[quoted text clipped - 29 lines]
>> >> > yes,
>> >> > How?

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.