Recently when I run this code I get the following error Operation aborted (Exception from HRESULT: 0x80004004 (E_ABORT))
. I have only recently started getting this issue. Basically when I run this code it checks if an addin is disabled if so then enable it. I'm not sure why I'm getting this error now.
My code is as follows
foreach (COMAddIn currentAddIn in myApp.COMAddIns)
{
if (currentAddIn.ProgId == "Create.ExcelAddIn" && !currentAddIn.Connect)
{
currentAddIn.Connect = true;
}
}
User contributions licensed under CC BY-SA 3.0