private void button9_Click(object sender, EventArgs e) { var excelApplication = new MyExcel.Application(); excelApplication.Visible = false; MyExcel.Workbook excelWorkBook = excelApplication.Workbooks.Open(textBox189.Text); MyExcel.Worksheet excelWorkSheet = excelWorkBook.ActiveSheet; excelWorkSheet.Cells[25, 2] = textBox6.Text; excelWorkSheet.Cells[27, 2] = textBox11.Text; excelWorkSheet.Cells[29, 2] = textBox10.Text; excelWorkSheet.Cells[31, 2] = textBox9.Text; excelWorkSheet.Cells[35, 2] = textBox8.Text; excelWorkSheet.Cells[39, 2] = textBox7.Text; excelWorkBook.Save(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)