Object reference not set to an instance of an object.
if (isDone.get_Value(oMissing).ToString() == "1")
using xlNS = Microsoft.Office.Interop.Excel; xlNS.Range isDone; isDone = targetSheet.get_Range("AA23", "AA23"); if (isDone.get_Value(oMissing).ToString() == "1") { //Do things }
isDone = targetSheet.get_Range("AA22", "AA22");
if(targetSheet.Cells[22, 27].equals("1")) { //do things }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)