is there any way to update existing sheet name of MS Excel file knowing that I am using apache poi in my android app
I can create a sheet with my custom name
HSSFSheet sheet = workbook.createSheet("my custom name");
but when I want to copy another sheet to this one , the name also is copied and my custom name is crashed
The following should do the trick:
workbook.setSheetName(workbook.getSheetIndex(sheet), "newName");
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With