M
MacDermott
I have an application which needs to use Automation to read properties of a
Word template.
I can create an instance of Word and use it to open a document:
set doc = wrd.documents.open("C:\Development\Test.doc")
but if I use
set doc = wrd.documents.open("C:\Development\Test.dot")
I get Test1.doc - a document based on the template, not the template itself.
Of course, then I can't read the Source property of the template.
The template I want isn't a member of the collection wrd.Templates, because
it isn't stored in the default Templates directory.
I could do this:
set dot = doc.attachedtemplate.openasdocument
But it seems like an awfully cumbersome way to do things,
opening both a document and a template just to read a property.
Any ideas?
TIA!
- Turtle
Word template.
I can create an instance of Word and use it to open a document:
set doc = wrd.documents.open("C:\Development\Test.doc")
but if I use
set doc = wrd.documents.open("C:\Development\Test.dot")
I get Test1.doc - a document based on the template, not the template itself.
Of course, then I can't read the Source property of the template.
The template I want isn't a member of the collection wrd.Templates, because
it isn't stored in the default Templates directory.
I could do this:
set dot = doc.attachedtemplate.openasdocument
But it seems like an awfully cumbersome way to do things,
opening both a document and a template just to read a property.
Any ideas?
TIA!
- Turtle