Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Home Page (Objects) | Overview | FAQ | Reference
Applies to: Application object
Occurs after a specified document is created.
Syntax
object**_NewDocument(document)**
Parameters
object
An expression that evaluates to an Application object.
document
The Document object that triggers this event.
Remarks
Developer Studio fires this event after the document is created.
For an overview about using event code, see the introduction to events.
Example
Following is a sample event handler for the NewDocument event. Copy this into your macro file, and then insert the appropriate code.
sub Application_NewDocument(theDocument)
' Insert code to handle the event here
end sub