richard smith

richard smith

  • 1.4k
  • 285
  • 159.9k

COMException Unhandled

Feb 14 2013 5:34 PM
I am running this code:
string[] lStats= new string[] { "Overboard" };
dynamic totalStats = oXL.ActiveWorkbook.Sheets[1].Cells.Find(lStats, XLFindLookIn.xlValues, XlLookAt.xlWhole).Offset[0,4].Value;

And it throws a COMException was unhandled.  Type Mismatch(Exception from HRESULT: 0x80020005 (DISP_E_TYPEMISMATCH))

Answers (1)