// Create a new workbook Workbook workbook = new Workbook(); IWorksheet worksheet = workbook.getWorksheets().get(0); worksheet.getRange("C3").addComment("Range C3's comment."); worksheet.getRange("D4").addComment("Range D4's comment."); worksheet.getRange("D5").addComment("Range D5's comment."); // delete a single cell comment. worksheet.getRange("D5").getComment().delete(); // clear a range of cells comment. worksheet.getRange("C3:D4").clearComments(); // Save to an excel file workbook.save("ClearComment.xlsx");