Visual Basic > Using Forums Forums > Off-Topic Posts (Do Not Post Here) > ERROR: Exception from HRESULT: 0x800A03EC on Microsoft.Office.Interop.Excel.Application
Ask a questionAsk a question
 

AnswerERROR: Exception from HRESULT: 0x800A03EC on Microsoft.Office.Interop.Excel.Application

  • Monday, November 02, 2009 10:50 PMMist Person Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    I got an wired issue when set a formula onto a excel cell by Microsoft.Office.Interop.Excel.Application.
    the wired thing is, this app runs well on any others user's desktop but one user - same OS(windows XP + Office 2007).
    I degugged the code and get the line which generated the exception.
    but if I put try...catch.. and generate the excel file, the manually put the formula(which could be exported in the try-catch caluse) to that perticular cell, it works without any complainents - it only complains when in the running code!

    here is the small piece of code I am using:

    Dim rg As Range = CType(xsheet.Cells(456,77), Range)
    rg.value="0"

    rg.Formula = "=sum(BW467,BX467)"
    rg.Calculate()


    Could anybody help please?

    Thanks.
    • Moved byRiquel_DongModeratorMonday, November 09, 2009 10:57 AMredirect to right forum (From:Visual Basic Interop and Upgrade)
    • Moved byRiquel_DongModeratorTuesday, November 10, 2009 9:21 AMredirect to right forum (From:Regular Expressions)
    •  

Answers

All Replies