Application.NewFileTaskPane Property

Access Developer Reference

Returns a NewFile object that represents a document listed on the New File task pane. Read-only NewFile object.

Syntax

expression.NewFileTaskPane

expression A variable that represents an Application object.

Example

This example creates a file list item on the New File task pane in the New from existing file section.

Visual Basic for Applications
  Dim nftpTemp As Office.NewFile

Set nftpTemp = Application.NewFileTaskPane

nftpTemp.Add FileName:="C:\Sales_Quarterly.mdb", _
    Section:=msoNewfromExistingFile, DisplayName:="Quarterly Sales", _
    Action:=msoCreateNewFile