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 / July 2007

Tip: Looking for answers? Try searching our database.

Loading a global template from Autonew in a document

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Stephen English - 03 Jul 2007 04:20 GMT
I have 15+ templates that all need to access the same user forms and code
when users create a new document.
Normally I would do this by putting it all in a global addin and load when
Word starts.  However, I want to put the global document in the same folder
as the templates (not best practice I know) because users need to be able to
take this suite of templates home with them to work offline from home
computers and it is easier if they just have to put them all in one place.

I would like to load this global template from AutoNew code whenever a user
creates a document from any of the 15 templates but I will not know the exact
file path - just that it is same as the template they have just clicked to
open.

Does anyone have code to do this please or have a better solution?
Thanks
Stephen
Russ - 03 Jul 2007 05:40 GMT
Stephen,
Try:
Word.ActiveDocument.AttachedTemplate.Path

> I have 15+ templates that all need to access the same user forms and code
> when users create a new document.
[quoted text clipped - 12 lines]
> Thanks
> Stephen

Signature

Russ

drsmN0SPAMikleAThotmailD0Tcom.INVALID

 
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.