DocumentChange Event

See Also         Example         Applies To

Occurs when a new document is created, when an existing document is opened, or when another document is made the active document.

Syntax

Private Sub object_DocumentChange()

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