// Create a new workbook Workbook workbook = new Workbook(); // Load template file Flowcharts.xlsx from resource InputStream fileStream = this.getResourceStream("xlsx/FlowChartsFile.xlsx"); workbook.open(fileStream); // Move the selected sheet collection to the end of current workbook. workbook.getWorksheets().get(new String[]{"FlowChart1", "FlowChart2"}).move(); // Save to an excel file workbook.save("MoveMultipleWorksheets.xlsx");