XLL+ Class Library (7.0)

CXllApp::WorkbookAfterSaveEvent

Gets a reference to the WorkbookAfterSave event

CXlWorkbookAfterSaveEvent& WorkbookAfterSaveEvent( );

Return Value

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

Remarks

The WorkbookAfterSave event is raised when a workbook save operation is complete, and provides a flag indicating whether the operation was successful, and the saved name of the workbook. All registered observers receive the event via the CXlEventObserver::Update method.

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

Availability

Note that this event is only available when running under Excel 2010 (Excel 14) or above.

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 CXlWorkbookAfterSaveEventStaticObserver.

Requirements

Header: xllplus.h

See Also

CXllApp Class | CXllApp Methods | Events