XLL+ Class Library (6.3)

CXllApp::WorkbookDeactivateEvent

Gets a reference to the WorkbookDeactivate event

CXlWorkbookDeactivateEvent& WorkbookDeactivateEvent( );

Return Value

The function returns a reference to the application's WorkbookDeactivate event, which is of type CXlWorkbookDeactivateEvent.

Remarks

The WorkbookDeactivate event is raised when a workbook is deactivated. All registered observers receive the event via the CXlEventObserver::Update method.

When observers are notified, an argument of type CXlWorkbookEventArgs is passed.

Registration

Observers can register for this event at any point in the life of the XLL. Registration can be done explicitly using Register, or automatically by creating an instance of CXlWorkbookDeactivateEventStaticObserver.

Requirements

Header: xllplus.h

See Also

CXllApp Class | CXllApp Methods | Events