locked
how to determine that a Cell of Excel contains nothing? RRS feed

  • Question

  • User-207835845 posted

    I've tryed using syntax below: Convert.IsDBNull(xSheet.Cells[i, 2]) and Excel.Range ran = (Excel.Range)xSheet.Cells[i, 2]; if (ran.Value2 == null) All the trys ended up with an exception msg:"HRESULT:0x800A03EC". dont know why.

    Wednesday, January 27, 2010 8:27 PM

All replies