U
Ulrik Gustafsson
I have a problem with my Outlook com-addin.
My com-addin creates a custom toolbar and a custom menu on the Menu Bar.
On the AddIn_Disconnect event when I close Outlook, the toolbar is deleted
because I have set the temporary
flag to True but the menu is not deleted. I know that there is no
ActiveExplorer when the add-in is disconnects from Outlook when
Outlook closes but how to do then?
I also know you can trap Explorer_Close event like in Randy Byrnes Items CB
example.
Maybe is the solution to delete the custom menu in the Explorer_Close event
But, when there is no explorers open, should not this code fail because
there is no active explorer?
How to solve this?
Set objControl = g_objOutlook.ActiveExplorer.CommandBars.FindControl(, ,
Tag:="MyMenu")
objControl.Delete
Thanks in advance
Ulrik
My com-addin creates a custom toolbar and a custom menu on the Menu Bar.
On the AddIn_Disconnect event when I close Outlook, the toolbar is deleted
because I have set the temporary
flag to True but the menu is not deleted. I know that there is no
ActiveExplorer when the add-in is disconnects from Outlook when
Outlook closes but how to do then?
I also know you can trap Explorer_Close event like in Randy Byrnes Items CB
example.
Maybe is the solution to delete the custom menu in the Explorer_Close event
But, when there is no explorers open, should not this code fail because
there is no active explorer?
How to solve this?
Set objControl = g_objOutlook.ActiveExplorer.CommandBars.FindControl(, ,
Tag:="MyMenu")
objControl.Delete
Thanks in advance
Ulrik