Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

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



Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.