Create new or clone XSSFCellStyle from another XSSFCellStyle (POI APACHE)
问题 Requirement I need a new XSSFCellStyle because I have to change some stylings. Situation I only have a XSSFCellStyle - I don't have the XSSFCell it belongs to. Thus I also don't have access to the related XSSFSheet or XSSFWorkbook . What I already tried I don't have the XSSFWorkbook therefore I can't call workbook.createCellStyle() . The XSSFCellStyle constructor needs at least a StylesTable which I also don't have (because I couldn't find a way to get it from the old XSSFCellStyle ). The