Share via


NewDocument Event [Publisher 2003 VBA Language Reference]

Occurs when a new publication is created.

Private Subobject**_NewDocument(ByVal Doc As Document)**

object An object of type Application declared with events in a class module. For more information about using events with the Application object, see Using Events with the Application Object .

Doc The 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

Applies to | Application Object