copy method

copy

Copies contents and formats from another worksheet.

def copy(self, source_sheet):
    ...
ParameterTypeDescription
source_sheetWorksheetSource worksheet.

copy

Copies contents and formats from another worksheet.

def copy(self, source_sheet, copy_options):
    ...
ParameterTypeDescription
source_sheetWorksheetSource worksheet.
copy_optionsCopyOptions

Remarks

You can copy data from another worksheet in the same file or another file. However, this method does not support to copy drawing objects, such as comments, images and charts.

See Also