Question : How do I retrieve the path and template name of an attached Word template?

I have a bunch of Word documents out on the network that have a template files that are referencing an old server name. I need to identify all of these documents (using vba) and update the path so it reflects the new server. So I need to open the document and check the template file (Tools, Templates and Addins) and then replace it if needed. The problem I'm having is that if I use the ActiveDocument.AttachedTemplate to retrieve the template name, if the path to the template is NOT valid, it reverts to the normal.dot and I can not retieve the path. I've tried ActiveDocument.BuiltInDocumentProperties("template") and that gives me the correct template name, but how do I get the path to this file?

I'm using Word 2000.

Thanks for your help.

Answer : How do I retrieve the path and template name of an attached Word template?

PAQd, 500 points refunded.

GhostMod
Community Support Moderator
Random Solutions  
 
programming4us programming4us