DocumentOpen Event

See Also         Example         Applies To

Occurs when a document is opened.

Syntax

Private Sub object_DocumentOpen(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 document that's being opened.