D
Dave
Hi,
I've created a addin which loads up a skeleton menu which (obv.) can
be used with any workbook. This works fine.
On a particular workbook, each sheet loads (and unloads) its own menu
on the Worksheet_Activate and _Deactivate methods. This works fine
too.
My problem is this... when a particular sheet has its' menu loaded and
I switch to another workbook, the previous sheets' menu is still
loaded, visible and available to run.
Is there any way to remove a submenu when a particular workbook has
lost its' focus? I'd rather not have to code evey other workbook to
remove it - I'm hoping I can keep all the code within the same place.
Many thanks,
Dave
I've created a addin which loads up a skeleton menu which (obv.) can
be used with any workbook. This works fine.
On a particular workbook, each sheet loads (and unloads) its own menu
on the Worksheet_Activate and _Deactivate methods. This works fine
too.
My problem is this... when a particular sheet has its' menu loaded and
I switch to another workbook, the previous sheets' menu is still
loaded, visible and available to run.
Is there any way to remove a submenu when a particular workbook has
lost its' focus? I'd rather not have to code evey other workbook to
remove it - I'm hoping I can keep all the code within the same place.
Many thanks,
Dave