he OnNewWorkbook property provides facilities for assigning Python code to be
run in the event of opening a new workbook.
The following code would assign the function onwHandler to be run if the "new
workbook" event is fired.
If one opens a new workbook at this point then the ControlShell receives the
new output as shown below.
|