Open Event

See Also         Example         Applies To

Occurs when a document is opened.

Syntax

Private Sub Document_Open()

Remarks

If the event procedure is stored in a template, the procedure will run when a new document based on that template is opened and when the template itself is opened as a document.

For information about using events with the Document object, see Using Events with the Document Object.