richard smith

richard smith

  • 1.5k
  • 285
  • 160.3k

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)