[英]Find merged cell in Excel, split the cells and write those in new spreadsheet?
[英]How to find out the cells that are aligned under a merged cell in excel
可以遍歷合並區域的數量,然后根據需要進行解析。 像這樣:
for (int i = 0; i < sheet.getNumberMergedRegions; i++) {
CellRangeAddress mergedRegion = sheet.getMergedRegion(i);
//do something with the mergedRegion
}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.