Copy Excel Worksheets

The code example above shows how to use IronXL for Python to duplicate and copy WorkSheet objects within and between Excel WorkBook objects. You can copy sheets to and from other workbooks, or create duplicate sheets within the same workbook.

The CopySheet method duplicates a worksheet within the same workbook. The name for the new worksheet is required as a parameter.

Use the CopyTo method to copy a sheet to another workbook. A WorkBook object is required as the first parameter, followed by the name for the new worksheet.

How to Copy Excel Worksheets in Python

  1. Install IronXL for Python to copy Excel worksheets.
  2. Load an Excel workbook and create a new sheet.
  3. Use the CopyTo method to copy data to the new worksheet.
  4. Save the new Excel worksheet.

Explore how to copy Excel worksheets using Python with IronXL.

Ready to Get Started?
Version: 2026.5 just released
Still Scrolling Icon

Still Scrolling?

Want proof fast?
run a sample watch your data become a spreadsheet.