Copiar hojas de Excel
The code example above shows how to use IronXL to duplicate and copy WorkSheets within and between Excel WorkBooks. Copie y pegue hojas hacia y desde otros libros de trabajo. Cree hojas duplicadas dentro del mismo libro de trabajo.
The CopySheet method is used to duplicate a worksheet within the same workbook or spreadsheet. El nombre de la nueva hoja de trabajo se requiere como un parámetro.
Use the CopyTo method to duplicate a sheet to or from another workbook. A WorkBook is required as the first parameter and is followed by the name of the new worksheet.
Puede descargar un proyecto de archivo desde este enlace.
Cómo copiar hojas de cálculo de Excel en C
- Instale una biblioteca de Excel para copiar hojas de trabajo.
- Cargue un libro de trabajo de Excel y cree una nueva hoja.
- Use the
CopyTomethod to copy data to the new worksheet. - Guarde la nueva hoja de trabajo de Excel.





