// Create a new workbook Workbook workbook = new Workbook(); //Use sheet index to get worksheet. IWorksheet worksheet = workbook.getWorksheets().get(0); //Use sheet name to get worksheet. IWorksheet worksheet1 = workbook.getWorksheets().get("Sheet1"); // Save to an excel file workbook.save("AccessWorksheet.xlsx");