Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

DocumentEvents2_Event.Open Event 

Occurs when a document is opened.

Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in microsoft.office.interop.word.dll)

'Usage
WithEvents documentEvents2_Event1 As DocumentEvents2_Event
Function documentEvents2_Event1_Open() As Void
	Handles documentEvents2_Event1.Open
End Function

event DocumentEvents2_OpenEventHandler Open;
 void add_Open(DocumentEvents2_OpenEventHandler handler);
 void remove_Open(DocumentEvents2_OpenEventHandler handler);
In JScript, you can handle the events defined by a class, but you cannot define your own.

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.


Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms

Community Additions

Show:
© 2014 Microsoft