NewDocument Property
TOC
Collapse the table of content
Expand the table of content

Application.NewDocument Property (Word)

Office 2013 and later
GitHub-Mark-64px

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

Returns a NewFile object that represents a document listed on the New tab.

expression .NewDocument

expression A variable that represents an Application object.

This example creates a document list item on the New Document task pane in the New From Existing File section.

Sub CreateNewDocument() 
 Application.NewDocument.Add FileName:="C:\NewFile.doc", _ 
 Section:=msoNewfromExistingFile, DisplayName:="New File", _ 
 Action:=msoCreateNewFile 
End Sub
Show:
© 2016 Microsoft