Add Method (Documents Collection)

See Also         Example         Applies To

Adds a new, empty document to the collection of open documents.

Syntax

expression.Add(Template, NewTemplate, DocumentType, Visible)

expression   Required. An expression that returns a Documents object.

Template   Optional Variant. The name of the template to be used for the new document. If this argument is omitted, the Normal template is used.

NewTemplate   Optional Variant. True to open the document as a template. The default value is False.

DocumentType   Optional Variant. Can be one of the following WdNewDocumentType constants: wdNewBlankDocument, wdNewEmailMessage, wdNewFrameset, or wdNewWebPage. The default constant is wdNewBlankDocument.

Visible   Optional Variant. True to open the document in a visible window. If this value is False, Microsoft Word opens the document but sets the Visible property of the document window to False. The default value is True.