Gets a reference to the NewWorkbook event
CXlNewWorkbookEvent& NewWorkbookEvent( ); |
The function returns a reference to the application's NewWorkbook event, which is of type CXlNewWorkbookEvent.
The NewWorkbook event is raised when a new workbook is created. All registered observers receive the event via the CXlEventObserver::Update method.
When observers are notified, an argument of type CXlWorkbookEventArgs is passed.
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 CXlNewWorkbookEventStaticObserver.
Header: xllplus.h