H
Heinz-Josef Bomanns
Hi,
i have a COM AddIn with two connectors - one hooks into Outlook
application and installes a button into the Tools menu, the other one
hooks into the VBA IDE and installs a button into the Add-Ins menu.
Some classes, modules and forms are holding shared functionality that
is called from either the Tools or Add-Ins menu buttons. This works
fine so far except one thing: When the VBA IDE stuff has to display a
form or a MsgBox it switches to the Outlook main window - after
closing the form or MsgBox it goes back to the VBA IDE window. I guess
this is because the connector for the Outlook application gets
initialized first and thus is the owner of all forms and MsgBoxs. I've
tried several things to move ownership to the VBA IDE stuff but with
no success - has anyone any experiences with this and how to solve
this problem? Thanks for any hint...
i have a COM AddIn with two connectors - one hooks into Outlook
application and installes a button into the Tools menu, the other one
hooks into the VBA IDE and installs a button into the Add-Ins menu.
Some classes, modules and forms are holding shared functionality that
is called from either the Tools or Add-Ins menu buttons. This works
fine so far except one thing: When the VBA IDE stuff has to display a
form or a MsgBox it switches to the Outlook main window - after
closing the form or MsgBox it goes back to the VBA IDE window. I guess
this is because the connector for the Outlook application gets
initialized first and thus is the owner of all forms and MsgBoxs. I've
tried several things to move ownership to the VBA IDE stuff but with
no success - has anyone any experiences with this and how to solve
this problem? Thanks for any hint...