EasyXLS

Remove sheets

EasyXLS™ library allows you to delete sheets from a workbook. The sheet to be deleted can be identified by name or by index. The sheet can be a worksheet or a chart sheet.

Remove sheet by name

The below example shows how to delete a sheet from an Excel file using the name of the sheet for identification.

C#.NET
VB.NET
C++
Java
PHP
ASP
VB6
VBS
Coldfusion
Python

Remove sheet by index

The below example shows how to delete a sheet from an Excel file using the index of the sheet into the workbook.

C#.NET
VB.NET
C++
Java
PHP
ASP
VB6
VBS
Coldfusion
Python
 

Available for: Professional, Excel Writer, Excel Reader
Go to top

EasyXLS Excel libraries:

.NET
.NET Excel Library
full .NET version to import, export or convert Excel files
COM+ Excel Library
full COM+ version to import, export or convert Excel files
-
Java
Java Excel Library
full Java version to import, export or convert Excel files
Download EasyXLS™ Excel Library for .NET and Java

File formats:

Office 365
MS Excel 2021 - 2024
MS Excel 2007 - 2019
MS Excel 97 - 2003
XLSXXLSMXLSBXLS
XMLHTMLCSVTXT