I am trying to remove sheets from an existing excel file using jxl api.
I cannot use
WritableWorkbook wwb = new Workbook.createWorkbook("abc.xls");
as I do not want to create a new workbook, rather I want to use an existing one.
I cannot use
Workbook wb = new Workbook.getWorkbook("abc.xls");
as this would get the file in read only mode. There is no “getWorkbook” method for the class WritableWorkbook. Please tell me how to go about it.
I searched through examples online but in each case a new workbook is being created rather than using an existing one.
If you want to edit an existing excel file,you can do like this: