ApplicationEvents4_Event ApplicationEvents4_Event ApplicationEvents4_Event Interface


Events interface for WordMicrosoft.Office.Interop.Excel.Application object events.This is a .NET interface created when processing a COM coclass that is required by managed code for interoperability with the corresponding COM object. This interface implements all events of earlier interfaces and any additional new events. Use this interface only when the event you want to use shares the same name as a method of the COM object; in this case, cast to this interface to connect to the event, and cast to the primary interface to call the method. Otherwise, use the .NET interface that is derived from the COM coclass to access methods, properties, and events of the COM object.

public interface class ApplicationEvents4_Event
public interface ApplicationEvents4_Event
Public Interface ApplicationEvents4_Event


DocumentBeforeClose DocumentBeforeClose DocumentBeforeClose

Occurs immediately before any open document closes.

DocumentBeforePrint DocumentBeforePrint DocumentBeforePrint

Occurs before any open document is printed.

DocumentBeforeSave DocumentBeforeSave DocumentBeforeSave

Occurs before any open document is saved.

DocumentChange DocumentChange DocumentChange

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

DocumentOpen DocumentOpen DocumentOpen

Occurs when a document is opened.

DocumentSync DocumentSync DocumentSync

Occurs when the local copy of a document that is part of a Document Workspace is synchronized with the copy on the server.

EPostageInsert EPostageInsert EPostageInsert

Occurs when a user inserts electronic postage into a document.

EPostageInsertEx EPostageInsertEx EPostageInsertEx

Occurs when a user inserts electronic postage into a document.

EPostagePropertyDialog EPostagePropertyDialog EPostagePropertyDialog

Occurs when a user clicks the E-postage Properties (Labels and Envelopes dialog box) button or Print Electronic Postage toolbar button.

MailMergeAfterMerge MailMergeAfterMerge MailMergeAfterMerge

Occurs after all records in a mail merge have merged successfully.

MailMergeAfterRecordMerge MailMergeAfterRecordMerge MailMergeAfterRecordMerge

Occurs after each record in the data source successfully merges in a mail merge.

MailMergeBeforeMerge MailMergeBeforeMerge MailMergeBeforeMerge

Occurs when a merge is executed before any records merge.

MailMergeBeforeRecordMerge MailMergeBeforeRecordMerge MailMergeBeforeRecordMerge

Occurs as a merge is executed for the individual records in a merge.

MailMergeDataSourceLoad MailMergeDataSourceLoad MailMergeDataSourceLoad

Occurs when the data source is loaded for a mail merge.

MailMergeDataSourceValidate MailMergeDataSourceValidate MailMergeDataSourceValidate

Occurs when a user performs address verification by clicking Validate in the Mail Merge Recipients dialog box.

MailMergeDataSourceValidate2 MailMergeDataSourceValidate2 MailMergeDataSourceValidate2

Occurs when a user validates mail merge recipients by clicking the Validate addresses link button in the Mail Merge Recipients dialog box.

MailMergeWizardSendToCustom MailMergeWizardSendToCustom MailMergeWizardSendToCustom

Occurs when the custom button is clicked on step six of the Mail Merge Wizard.

MailMergeWizardStateChange MailMergeWizardStateChange MailMergeWizardStateChange

Occurs when a user changes from a specified step to a specified step in the Mail Merge Wizard.

NewDocument NewDocument NewDocument

Occurs when a new document is created.

ProtectedViewWindowActivate ProtectedViewWindowActivate ProtectedViewWindowActivate

Occurs when any protected view window is activated.

ProtectedViewWindowBeforeClose ProtectedViewWindowBeforeClose ProtectedViewWindowBeforeClose

Occurs immediately before a protected view window or a document in a protected view window closes.

ProtectedViewWindowBeforeEdit ProtectedViewWindowBeforeEdit ProtectedViewWindowBeforeEdit

Occurs immediately before editing is enabled on the document in the specified protected view window.

ProtectedViewWindowDeactivate ProtectedViewWindowDeactivate ProtectedViewWindowDeactivate

Occurs when a protected view window is deactivated.

ProtectedViewWindowOpen ProtectedViewWindowOpen ProtectedViewWindowOpen

Occurs when a protected view window is opened.

ProtectedViewWindowSize ProtectedViewWindowSize ProtectedViewWindowSize

Occurs when a protected view window is moved or resized.

Quit Quit Quit

Occurs when the user quits Word.

Startup Startup Startup

Reserved for internal use.

WindowActivate WindowActivate WindowActivate

Occurs when any document window is activated.

WindowBeforeDoubleClick WindowBeforeDoubleClick WindowBeforeDoubleClick

Occurs when the editing area of a document window is double-clicked, before the default double-click action.

WindowBeforeRightClick WindowBeforeRightClick WindowBeforeRightClick

Occurs when the editing area of a document window is right-clicked, before the default right-click action.

WindowDeactivate WindowDeactivate WindowDeactivate

Occurs when any document window is deactivated.

WindowSelectionChange WindowSelectionChange WindowSelectionChange

Occurs when the selection changes in the active document window.

WindowSize WindowSize WindowSize

Occurs when the application window is resized or moved.

XMLSelectionChange XMLSelectionChange XMLSelectionChange

Occurs when the parent XML node of the current selection changes.

XMLValidationError XMLValidationError XMLValidationError

Occurs when there is a validation error in the document.

Applies to