Update specific cell of excel file using oledb
问题 I want to update the specific cell of the excel file using oledb. Say I7 cell, for some reason always I1 is getting updated. Can anyone tell me what's wrong with this code? OleDbConnection oledbConn = new OleDbConnection(connString); oledbConn.Open(); // I want to set the value of I7 cell to 22, for some reason value is I1 is getting updated :( OleDbCommand cmd = new OleDbCommand("UPDATE [" + sheetName + "$I7:I7] SET F1=22", oledbConn); int result = cmd.ExecuteNonQuery(); Console.WriteLine