NativeExcel for .Net Developer's Reference

IWorksheets.AddMethod()

Creates a new worksheet. The new worksheet will be added after the last worksheet.

[Visual Basic]
FunctionAdd()AsIWorksheet
[C#]
IWorksheetAdd();
[C++]
IWorksheet*Add();
[JScript]
functionAdd():IWorksheet;

Return Value

IWorksheet interface.

Example

This example creates a new worksheet.

[C#]
book.Worksheets.Add();
[VisualBasic]
book.Worksheets.Add()
[C++]
book->Worksheets->Add();

See Also

IWorksheets Interface | NativeExcel Namespace | IWorksheets.Add Overload List