 | WorkbookCopyWorksheetIntoThis(String, String, Boolean) Method |
Copies a worksheet of the current workbook by its name
Namespace: PicoXLSXAssembly: PicoXLSX (in PicoXLSX.dll) Version: 3.4.3+c820fb107cc06ae187946bad43db42d71f6faf1c
Syntaxpublic Worksheet CopyWorksheetIntoThis(
string sourceWorksheetName,
string newWorksheetName,
bool sanitizeSheetName = true
)
Parameters
- sourceWorksheetName String
- Name of the worksheet to copy, originated in this workbook.
- newWorksheetName String
- Name of the new worksheet (copy).
- sanitizeSheetName Boolean (Optional)
- If true, the new name will be automatically sanitized if a name collision occurs.
Return Value
WorksheetCopied worksheet.
See Also