NewDocument Event

See Also         Example         Applies To

Occurs when a new document is created.

Syntax

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.