XLL+ Class Library (7.0)


Gets a reference to the WorkbookNewSheet event

CXlWorkbookNewSheetEvent& WorkbookNewSheetEvent( );

Return Value

The function returns a reference to the application's WorkbookNewSheet event, which is of type CXlWorkbookNewSheetEvent.


The WorkbookNewSheet event is raised when a new sheet is added to a workbook. All registered observers receive the event via the CXlEventObserver::Update method.

When observers are notified, an argument of type CXlWorkbookNewSheetEventArgs 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 CXlWorkbookNewSheetEventStaticObserver.


Header: xllplus.h

See Also

CXllApp Class | CXllApp Methods | Events