// Create a new workbook Workbook workbook = new Workbook(); //Use sheet index to get worksheet. IWorksheet worksheet = workbook.getWorksheets().get(0); // Set not to show horizontal gridlines worksheet.getSheetView().setDisplayHorizontalGridlines(false); // Set to show vertical gridlines worksheet.getSheetView().setDisplayVerticalGridlines(true);