he OnSheetActivate property provides facilities for assigning Python code to
be run in the event of worksheet activation.
The following code would assign the function osaHandler to be run if the
"sheet activation" event is fired.
If the user activates a sheet then the ControlSheet receives new output.
Click on the "Sheet2". It activates, as shown below.
The ControlShell receives new output.