he Excel application may load several workbooks. However, only one of these
workbooks may be in focus (activated). If a new workbook activates then the
currently active workbook must deactivate. A "workbook deactivation" event is
fired when this happens. The OnWorkbookDeactivate property provides facilities
for trapping such event. Consider the following code.
The output of the signature() method indicates that an event handler is
expected to accept one argument. We provide such handler as follows.
Consequently, a deactivation directs output to the ControlShell.