Called by the framework just before a workbook is closed
[C++]
virtual BOOL OnWorkbookBeforeClose(
LPDISPATCH dispWorkbook
);
Pointer to dispatch interface of type Excel.Workbook.
The function should return TRUE to cancel any further processing of the
double-click event.
It should return FALSE (the default) to enable normal processing to continue. Note that if you return TRUE, the file will not be closed,
and if the application is in the process of shutting down,
this process will be canceled.
This function is called just before a workbook is closed. Note that it will only be called if event-sinking is switched on
(using CXllApp::SetSinkEvents()). You can override the method in your application class
to react to the event.
The default method does nothing and returns FALSE.
Header: xllplus.h
CXllApp Class
| CXllApp Methods
| CXllApp::OnNewWorkbook()
| CXllApp::OnWorkbookOpen()
| CXllApp::OnWorkbookBeforeSave()