Word cannot attach a document to a protected template

K

kurt.z

There is a problem in word when you want to attach a protected template
to a document. Because I found no real solutions in the groups I will
post my workaround:

1. Open the Template as an AddIn: AddIns.Add(Filename, true)
2. Open the Template as a Document: Templates(Filename).OpenAsDocument
3. Unprotect this Templatedocument
4. Attach the Template to your Document: AttachedTemplate =
Templates(Filename)
5. Close the Templatedocument (without saving it)
6. Delete the Template from the AddIns: AddIns(Filename).Delete

Kurt Zimmermann
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top