_Workbook workbook = (_Workbook)(excelapp.Workbooks.Open(@"E:\ScriptTest\c.xlsx")); workbook.Sheets.Add(); _Worksheet worksheet = (_Worksheet)workbook.ActiveSheet;
Line 1 Selection of excel sheet
Line 2:I am intersted in Adding the new sheet
Line3:Selection of Sheet
I want to select may be sheet 2 or sheet 3 like that
How to specify ?
And instead of just Add() can we specify name of sheet to be created also If yes how ?