// Create a new workbook Workbook workbook = new Workbook(); IWorksheet worksheet = workbook.getWorksheets().get(0); // Prepare data final String CorrectWord = "Macro"; worksheet.getRange("A1:D5").setValue(CorrectWord); final String MisspelledWord = "marco"; worksheet.getRange("A2,C3,D1").setValue(MisspelledWord); // Find all misspelled words and mark them with red background IRange searchRange = worksheet.getRange("A1:D5"); IRange misspelledCell = null; do { misspelledCell = searchRange.find(MisspelledWord, misspelledCell); if (misspelledCell == null) { break; } misspelledCell.getInterior().setColor(Color.GetRed()); } while (true); // Save to an excel file workbook.save("FindWithAfter.xlsx");