Create/Remove toolbars
I have an application that adds a toolbar as part of it's auto_open
processing. During auto_close, it removes the toolbar.
The problem comes if I open two spreadsheets with this code in. The second
one detects that the toolbar is already there, so does not try to load it a
second time. However, if I close one of the sheets, the auto_close fires and
the toolbar is taken away. This leaves the first sheet sitting there without
it's tool bar.
Is there any way of maintaining a reference count such that I only delete
the toolbar when it's no longer needed?
Thanks
Steve
|