M
Mike
Hi! I built a template Custom.dot.
I built a menu which the users can click to open another specialty document.
I call
Set objDoc = Documents.Open(pstrDocLocation & pstrDocName)
to open a new document. However, the new document is based on the Normal
template rather than Custom.dot template. How can I force new documents to
use other templetes? I can not seem to figure out. I tried
Dim myTemplate As Template
Set myTemplate = ActiveDocument.AttachedTemplate
objDoc.AttachedTemplate = myTemplate
but got error message that I can not replace protected template.
I am not sure what it is or whether I am on thr right track ?
Please let me know what I am doing wrong.
Many Thanks in Advance,
I built a menu which the users can click to open another specialty document.
I call
Set objDoc = Documents.Open(pstrDocLocation & pstrDocName)
to open a new document. However, the new document is based on the Normal
template rather than Custom.dot template. How can I force new documents to
use other templetes? I can not seem to figure out. I tried
Dim myTemplate As Template
Set myTemplate = ActiveDocument.AttachedTemplate
objDoc.AttachedTemplate = myTemplate
but got error message that I can not replace protected template.
I am not sure what it is or whether I am on thr right track ?
Please let me know what I am doing wrong.
Many Thanks in Advance,