Copy Method

Office Open XML

Copies the named worksheet and creates a new worksheet in the same workbook

Namespace:  OfficeOpenXml
Assembly:  EPPlus (in EPPlus.dll) Version: 3.0.0.1 (3.0.0.1)

Syntax

C#
public ExcelWorksheet Copy(
	string Name,
	string NewName
)
Visual Basic (Declaration)
Public Function Copy ( _
	Name As String, _
	NewName As String _
) As ExcelWorksheet
Visual C++
public:
ExcelWorksheet^ Copy(
	String^ Name, 
	String^ NewName
)

Parameters

Name
Type: System..::.String
The name of the existing worksheet
NewName
Type: System..::.String
The name of the new worksheet to create

Return Value

The new copy added to the end of the worksheets collection

See Also