File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Other Open Source Projects and the fly likes How to delete a WorkSheet in HSSF Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "How to delete a WorkSheet in HSSF" Watch "How to delete a WorkSheet in HSSF" New topic

How to delete a WorkSheet in HSSF

Mahendran Aiyappan
Ranch Hand

Joined: Sep 05, 2005
Posts: 102
Hi guys,

I wanted to know How to delete an existing worksheet from a Excel Workbook using POI HSSF.

Please give me your suggestions

Ulf Dittmer

Joined: Mar 22, 2005
Posts: 39547
The HSSFWorkbook.removeSheetAt method looks promising.

Ping & DNS - updated with new look and Ping home screen widget
I agree. Here's the link:
subject: How to delete a WorkSheet in HSSF
Similar Threads
Delete Excel work sheet
download datas to different cells of microsoft excel worksheet
Writing infor in Excel file through servlet
POI (HSSF ) - Merged Cells
Strange error with Apache POI