Called by the framework when the user changes the contents of a cell
[C++]
virtual void OnSheetChange(
LPDISPATCH dispWorksheet,
LPDISPATCH dispRange
);
Pointer to dispatch interface of type Excel.Worksheet.
Pointer to dispatch interface of type Excel.Range, representing the new selection.
This function is called whenever the user changes the contents of a cell. 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.
You should only implement this function if you need access to Excel's COM interfaces.
If you just want to call an add-in function, use the much simpler mechanism
provided by CXllApp::SetComEventHandler().
Header: xllplus.h
CXllApp Class
| CXllApp Methods
| CXllApp::OnSheetSelectionChange()