Click or drag to resize
ExcelWorksheetCollectionAdd Method
Adds an empty worksheet to the end of the collection.

Namespace:  GemBox.Spreadsheet
Assembly:  GemBox.Spreadsheet (in GemBox.Spreadsheet.dll) Version: 41.3.30.1018
Syntax
public ExcelWorksheet Add(
	string worksheetName
)

Parameters

worksheetName
Type: SystemString
Worksheet name.

Return Value

Type: ExcelWorksheet
Newly created worksheet.
Exceptions
ExceptionCondition
ArgumentExceptionWorksheet name is not unique.
Remarks
If this is the first worksheet added to the collection the ActiveWorksheet is set to this worksheet.
See Also