Word Automation; documents and templates
Using VBA I want to open a blank, new Word document
1) How do I declare which template is to be used?
2) How do I manage to save the document (after filling it by manually typing) without affecting the underlying template (for instance, Normal.dot). The system gets to ask to save first the document, the template afterwards, but I would like to save just the document, and leave the template untouched
thanks
[424 byte] By [
amc] at [2008-2-7]
Documents.Add method can be used to add a new Document. This document by default takes the normal template.
The
template option can be used to specify other templates
Sub NewMyMemoDocument()
Documents.Add ("C:\Program Files\Microsoft Office\Office\1033\MyMemo.dot")
End Sub
I have used the MyMemo.dot template to create a new document