he WorkbookBeforeClose property provides facilities for trapping an Excel
event fired before closing a workbook. Consider the following code.
The output of the signature() method shows that an event handler is expected
to take one argument and return a boolean value. If such value is True when
returned by the last processed event handler then the workbook closing would
be stopped. The code below illustrates the ideas.
Consequently, any attempt to close any workbook in the current instance of
Excel is stopped and every time the new output is directed to ControlShell as