New Event

Applies To

Document object.

Description

Occurs when a new document based on the template is created. A procedure for the New event will run only if it is stored in a template.

Syntax

Private Sub Document_New( )

See Also

Close event, DocumentChange event, Open event, Quit event.

Example

This example arranges all open windows when a new document based on the template is created. (This procedure is stored in a template, not a document.)

Private Sub Document_New()
    Application.Windows.Arrange wdTiled
End Sub