 | WorkbookCopyWorksheetIntoThis(Worksheet, String, Boolean) Method |
Copies a worksheet of any workbook into the current workbook
Namespace: PicoXLSXAssembly: PicoXLSX (in PicoXLSX.dll) Version: 3.4.2+f55916d49ef2baa43fc7dc8f5c7d751a77c50baf
Syntaxpublic Worksheet CopyWorksheetIntoThis(
Worksheet sourceWorksheet,
string newWorksheetName,
bool sanitizeSheetName = true
)
Parameters
- sourceWorksheet Worksheet
- Worksheet to copy.
- 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