Table of contents
TOC
Collapse the table of content
Expand the table of content

Application.NewDocument Event (Publisher)

office 365 dev account|Last Updated: 8/24/2017
|
3 Contributors

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.

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

See also

Concepts

Application Object

© 2018 Microsoft