David Wisniewski
Posts: 39
Joined: 2015-11-20
|
I have an addin express outlook addin running in outlook that has public subs. I also have a separate addin express addin running in excel. Sometimes the addin in Excel wants to send an email, but I've found that automating outlook from excel causes errors sometimes in outlook due to conflicts with the addin that is already running in outlook. Is there a way (and how) can I, from my excel addin, call a public sub that is in my outlook addin? |
|
Andrei Smolin
Add-in Express team
Posts: 18719
Joined: 2006-05-11
|
Hello David,
You can access your COM add-in via the following code path:
OutlookApp.COMAddins.Item(strMyComAddinProgId).Object.MyPublicPropertyOrMethod.
1. strMyComAddinProgId - see the ProgId attribute of your add-in module.
2. MyPublicPropertyOrMethod is called via late binding (see System.Type.InvokeMember in MSDN or search through our forums)
See also http://www.add-in-express.com/creating-addins-blog/2010/07/02/standalone-application-addin-communicate/.
Regards from Poland (CET),
Andrei Smolin
Add-in Express Team Leader |
|