NewDocument Event

Microsoft Publisher Visual Basic

Private Sub object_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