Hi Dave,
Thanks for the reply.
If I'm not misunderstanding this - each of my sheets has a Deactivate
event which removes its' menu, but if the sheet is active and the user
simply switches to another workbook on the taskbar, the Deactivate
event doesn't 'kick in'.
Perhaps it's because it is still active in its' own workbook.
I need to detect the fact that the user has changed workbooks.
Ideally, that the user has changed workbooks and has left a active
sheet in another workbook - something like the worksheet has lost
focus, but keeping all the code within the old sheet so it has
complete control of loading and unloading its' own menu.
Does this make sense?
Regards,
Dave
>Maybe you can tie into the workbook events:
>
[quoted text clipped - 22 lines]
>> Many thanks,
>> Dave
Dave Peterson - 25 Jan 2007 18:10 GMT
I'm guessing that the icons on the taskbar are still workbooks open in the same
instance of excel, right?
Then take a look at the workBOOK_deactivate and workBOOK_activate events. These
are the events that fire when you're swapping workbooks.
These are different than the worksheet events.
> Hi Dave,
>
[quoted text clipped - 45 lines]
> >> Many thanks,
> >> Dave

Signature
Dave Peterson
Dave - 25 Jan 2007 23:15 GMT
Hi Dave,
Yes you guessed right.
Many thanks,
Dave
>I'm guessing that the icons on the taskbar are still workbooks open in the same
>instance of excel, right?
[quoted text clipped - 53 lines]
>> >> Many thanks,
>> >> Dave