How to copy one entire Excel sheet into another Excel sheet of the same workbook, using Java SE and Apache POI?
12
votes
3 Answers
20
votes
You'll probably want the cloneSheet(sheetNumber) method on the Workbook. See the JavaDocs for details
4
votes
Did you check the API?
to copy a sheet into the same workbook, use
HSSFWorkbook.clonesheet(int sheetIndex)
Ivan's comment has linked the question for copying across workbooks.