XLL+ Class Library (7.0)

CXlWorkbookBeforeCloseEventStaticObserver Class

An event observer for XlWorkbookBeforeClose, which is automatically registered and unregistered.

class CXlWorkbookBeforeCloseEventStaticObserver : public CXlStaticEventObserver


It is sometimes inconvenient to register an event observer at the appropriate time. This class can be used to safely automatically register and unregister itself.

During the XlWorkbookBeforeClose event, before the book is closed, the object's Update method will be called.

See the Update method for an example of this class in use.


Header: xlpevents.h

See Also

CXlWorkbookBeforeCloseEventStaticObserver Methods | xlpevents.h | CXlWorkbookBeforeCloseEvent | Events