An event which is raised when a workbook is about to be saved, and allows the event to be cancelled.
class CXlWorkbookBeforeSaveEvent : 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 CXlWorkbookBeforeSaveEventStaticObserver.
When observers are notified, an argument of type CXlBeforeSaveEventArgs is passed. Observers can cancel normal processing of the double-click by cancelling the event using CXlBeforeSaveEventArgs::SetCancel(false).
Header: xlpevents.h
CXlWorkbookBeforeSaveEvent Methods | xlpevents.h | CXllApp::WorkbookBeforeSaveEvent | Events | CXlBeforeSaveEventArgs | CXlWorkbookBeforeSaveEventStaticObserver