1
Answer

COMException Unhandled

richard smith

richard smith

11y
1.8k
1
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)