XSSFFont font1 = wb.createFont(); font1.setBold(true); XSSFFont font2 = wb.createFont(); font2.setBold(true); XSSFRichTextString s = new XSSFRichTextString(); s.append("apache poi 5.0.0", font1); s.append("test", font2); row0Cell0.setCellValue(s);
also, you can review this bug in ======>http://svn.apache.org/repos/asf/poi/trunk/poi-examples/src/main/java/org/apache/poi/examples/xssf/usermodel/WorkingWithRichText.java