1
Answer

Add a sheet to excel

darma teja

darma teja

12y
1.5k
1
Hi,

I wrote code like this for excel.

 Microsoft.Office.Interop.Excel.Application xla = new Microsoft.Office.Interop.Excel.Application();
               Workbook vb = xla.Workbooks.Add(XlSheetType.xlWorksheet);
               Worksheet ws = (Worksheet)xla.ActiveSheet;
               xla.Visible = true;



How can i add a new sheet to workbook??


Darma
Answers (1)