VSTO Addin for Excel Not loading after running EXCEL from code RRS feed

  • Question

  • Hello , 

    I'm launching Excel from code using this code : 

        var excelApp = new MSExcel.Application { Visible = true };
        excelApp = null;

    I've added the second line because without it the Excel automatically closes when the launcher closes. When I add new workbook it keeps alive. Howewer, my add-in that has nothing to do with the launcher won;t load. Any suggestions ? 

    Thanks for your advice. 
    Wednesday, April 11, 2012 12:39 PM


All replies

  • are you sure that your add-in is not loaded at all and does not simply crashes which results in not-loaded state? if right after starting excel from console app, you start new excel from UI, does your add-in load? What is your add-in startup code?
    Wednesday, April 11, 2012 12:48 PM
  • I'm 100% sure that there is no problem with the addin. 
    Wednesday, April 11, 2012 1:09 PM
  • all add-ins are disabled when you start excel in such way or only this one?
    Wednesday, April 11, 2012 1:20 PM
  • No, when I click options I see it as if it was enabled 

    Wednesday, April 11, 2012 1:36 PM
  • so excel starts, your plugin is enabled so what do you mean by ", my add-in that has nothing to do with the launcher won;t load" ?
    Wednesday, April 11, 2012 2:11 PM