Exception from HRESULT: 0x800A03EC getting when worksheet.OLEObjects("CustomerTableListBox"); RRS feed

  • Question

  • Hi,

    I have office 2010, visual studio 2012 with .net framework 4.5. I am getting exception 

    base {"Exception from HRESULT: 0x800A03EC"}

    System.Exception {System.Runtime.InteropServices.COMException}

    i am not able to understand why i am getting this exception. below is the line where i am getting exception.

     OLEObject CustomerList = _WorkSheet.OLEObjects("CustomerTableListBox");


    Thursday, January 24, 2013 11:56 AM


All replies

  • Hi Barnes.dennis007,

    Thank you for posting in the MSDN Forum.

    What about the code below?

    OLEObject CustomerList = _WorkSheet.OLEObjects.Item("CustomerTableListBox");

    Hope it helps.

    Best regards,

    Quist Zhang [MSFT]
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Friday, January 25, 2013 5:48 AM
  • Hi Barnes.dennis007,

    Have you tried targeting .NET 4.0 instead?

    - Michael

    Michael Zlatkovsky | Program Manager, Visual Studio Tools for Office & Apps for Office

    Tuesday, January 29, 2013 5:04 PM