// Create a new workbook Workbook workbook = new Workbook(); IWorksheet worksheet = workbook.getWorksheets().add(); //Activate new created worksheet. worksheet.activate(); // Save to an excel file workbook.save("ActivateWorksheet.xlsx");