XLL+ Class Library (7.0)

CXlWorkbookAfterSaveEvent Class

An event which is raised after a workbook save operation is complete, and supplies the name of the workbook as saved and a flag indicating whether the save operation was successful.

class CXlWorkbookAfterSaveEvent : public CXlEvent


The event occurs when a workbook is about to be saved, and allows the event to be cancelled.

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.

When observers are notified, an argument of type CXlAfterSaveEventArgs is passed. The argument contains a Success field, which indicates whether the save operation was completed successfully, and which can be retrieved using CXlAfterSaveEventArgs::GetSuccess().


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


Header: xlpevents.h

See Also

CXlWorkbookAfterSaveEvent Methods | xlpevents.h | CXllApp::WorkbookAfterSaveEvent | Events | CXlAfterSaveEventArgs | CXlWorkbookAfterSaveEventStaticObserver