public void excelTablaBeolvaso() { readIn(); int rowsCount = 0; foreach (Range item in Col1.Cells) { if (item.Text != "") { rowsCount++; } else { break; } } db.dbDefault("cikk"); dbWriterCikk(rowsCount); db.dbDefault("charge"); dbWriterCharge(rowsCount); wb.Close(); excel.Quit(); }