Code Snippets
Documents can sometimes lose their connection to their template
Need to re-attach if invalid or cannot be found.
There is a templates collection for all the templates
You cannot create a new template using the templates collection.
Templates are created by first creating a document and then saving it as a template, using SaveAs
A template is attached to the templates collection whenever you:
● Use the Documents.Open method
● Use the Documents.Add method
● Use the AttachedTemplate property to change the template for a document (i.e. replacing the existing template)
You can use the Application.NormalTemplate property to return a template object that refers to the Normal Template
Returns the template attached to the active document
Creates a new document from an existing document
Opens a template that is in the Templates collection as a document.
The following code saves a copy of the Normal.dotm template
Copying styles from a template
Using the Organiser
© 2026 Better Solutions Limited. All Rights Reserved. © 2026 Better Solutions Limited TopPrevNext