Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 06-16-2014, 10:18 AM
jpb103's Avatar
jpb103 jpb103 is offline how to determine the full path of the template from which a document was created? Windows 7 64bit how to determine the full path of the template from which a document was created? Office 2007
Advanced Beginner
 
Join Date: May 2014
Location: Thunder Bay, Ontario
Posts: 58
jpb103 is on a distinguished road
Default

In the VBA window, click "Tools" and then "References...". Ensure that the checkbox next to the template in question is checked. To get the path of this template, use the following code:
Code:
mytemplate.ThisDocument.Path
Where "mytemplate" is the name of your template. I think that should work.
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Document Filename Generator for Referencing john.adams Word 10 03-26-2013 12:14 AM
how to determine the full path of the template from which a document was created? Save Filename using Document Text Knawl Word 11 10-10-2011 03:00 AM
how to determine the full path of the template from which a document was created? Office 2010 Template Loses Its Filename On Open MYGS Word 14 06-02-2011 09:44 PM
Macro to determine attached template zippyaus Word VBA 0 03-02-2010 02:05 AM
Word: The document 'Filename' caused a serious error the last time ... martincruise Word 0 02-25-2010 01:47 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:39 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft