xlsx.copy_sheet
xlsx.copy_sheet(wb, sheet, new_name)
Input: wb, sheet, new_name · Output: no output
What it is
Copies a sheet to a new one named new_name, appended after the last sheet: cells, formulas, formatting, merges, column widths, freeze panes, conditional formats, validations, and the charts, notes, pictures and tables the sheet carries (a chart on the copy reads the copy's own cells; a copied table is renamed Name_2, table names being unique). The copy is not the selected tab. Defined names scoped to the source sheet are not copied.
Overloads
One call shape — this function is not overloaded.
| Code | Input | Output | Description |
xlsx.copy_sheet(wb, sheet, new_name) | wb —not documented yetsheet —Copies a sheet to a new one named new_name, appended after the last sheet: cells, formulas, formatting, merges, column widths, freeze panes, conditional formats, validations, and the charts, notes, pictures and tables the sheet carries (a chart on the copy reads the copy's own cells.new_name —Copies a sheet to a new one named new_name, appended after the last sheet: cells, formulas, formatting, merges, column widths, freeze panes, conditional formats, validations, and the charts, notes, pictures and tables the sheet carries (a chart on the copy reads the copy's own cells. | no output | The copy is not the selected tab. |
Examples
No documentation example calls this form yet. The File I/O chapter is where one belongs.