WorksheetCollection.AddCopy

AddCopy(string)

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

public int AddCopy(string sheetName)
ParameterTypeDescription
sheetNameStringName of source worksheet.

Return Value

Worksheet object index.

Exceptions

exceptioncondition
ExceptionSpecifies an invalid worksheet name.

See Also


AddCopy(int)

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

public int AddCopy(int srcSheetIndex)
ParameterTypeDescription
srcSheetIndexInt32Index of source worksheet.

Return Value

Worksheet Index of of the new worksheet.

See Also