Copies a worksheet in the workbook to another position in the workbook. |
public void CopySheet(Worksheet sheet, int position, System.String newName) |
Public Sub CopySheet(ByVal sheet As Worksheet, ByVal position As Integer, ByVal newName As String) |
A Worksheet object representing the sheet to copy. |
The 0-based position at which to insert a copy of the specified worksheet. If |
the new name to use for this worksheet. |
This method is intended to allow for copying of sheets from one position to another within a single workbook. To copy content from a worksheet in one workbook to worksheet in another workbook, use the Worksheet.CopyPaste |
|