Error when open outlook after open Addin Excel application

Add-in Express™ Support Service
That's what is more important than anything else

Error when open outlook after open Addin Excel application
 
Luis Delgado




Posts: 10
Joined: 2020-08-07
Hi I think this is not a new topic but I haven't saw this error with outlook.
The point is when I open my registered excel add in application and I try to open the outlook office the message box appears and says this:
"Unable to cast COM object of type:
'Microsoft.Office.Interop.Outlook.ApplicationClass' to interface type
'Microsoft.Office.Interop.Excel._Application'. This operation failed because the
QueryInterface call on the COM component for the interface with IID
'{000208D5-0000-0000-C000-000000000046}'failed due to the following
error: No such interface supported (Exception from HRESULT: 0x80004002
(E_NOINTERFACE)).

Bests
Posted 18 Aug, 2020 16:43:39 Top
Andrei Smolin


Add-in Express team


Posts: 17360
Joined: 2006-05-11
Hello Luis,

Am I right assuming that this only occurs if you register your Excel add-in? If so, check whether your Excel add-in is also registered with Outlook: check the add-ins Outlook loads at File | Options | Add-ins under "Active application add-ins".

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 19 Aug, 2020 04:35:37 Top
Luis Delgado




Posts: 10
Joined: 2020-08-07
Hi Andrei, the Excel add-in is active in outlook too, however that message continues to come out when I open my Outlook after I have opened the Excel
Regards
Posted 19 Aug, 2020 08:54:20 Top
Andrei Smolin


Add-in Express team


Posts: 17360
Joined: 2006-05-11
Hello Luis,

It looks like you need to debug your code. I assume it expects to be run in Excel when the add-in loads in Outlook.

Luis Delgado writes:
however that message continues to come out when I open my Outlook after I have opened the Excel


And if you start Outlook and Excel is not started?

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 19 Aug, 2020 08:59:38 Top