AddCopy

WorksheetCollection.AddCopy method (1 of 2)

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

public int AddCopy(string sheetName)
Parameter Type Description
sheetName String Name of source worksheet.

Return Value

Worksheet object index.

Exceptions

exception condition
CellsException Specifies an invalid worksheet name.

See Also


WorksheetCollection.AddCopy method (2 of 2)

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

public int AddCopy(int sheetIndex)
Parameter Type Description
sheetIndex Int32 Index of source worksheet.

Return Value

Worksheet object index.

See Also