WorksheetCollectionAddCopy Method (String)

Adds a worksheet to the collection and copies data from an existed worksheet.

Namespace:  Aspose.Cells
Assembly:  Aspose.Cells (in Aspose.Cells.dll) Version: 21.6.0.0 (21.6)
Syntax
public int AddCopy(
	string sheetName
)

Parameters

sheetName
Type: SystemString
Name of source worksheet.

Return Value

Type: Int32
Worksheet object index.
Exceptions
ExceptionCondition
CellsExceptionSpecifies an invalid worksheet name.
See Also