darma teja

darma teja

  • NA
  • 496
  • 337.4k

Add a sheet to excel

Jul 19 2012 3:27 PM
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)