Qu

xlsx.copy_sheet

Builtin index · File I/O

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.

CodeInputOutputDescription
xlsx.copy_sheet(wb, sheet, new_name)
wb —not documented yet
sheet —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 outputThe copy is not the selected tab.

Examples

No documentation example calls this form yet. The File I/O chapter is where one belongs.