This documentation is archived and is not being maintained.

Application.NewDocument Event

Office 2007
Occurs when a new publication is created.

Syntax

expression.NewDocument(Doc, )

expression   A variable that represents an Application object.

Parameters

NameRequired/OptionalData TypeDescription
DocRequiredDocumentThe new document.

Example

This example displays a message when a new publication is created.

Visual Basic for Applications
Private Sub appPub_NewDocument(ByVal Doc As Document)
    MsgBox "This is a new publication."
End Sub



Show: