本帖最后由 Richard.Huang 于 2024-2-22 11:07 编辑
产品:GcExcel
- PasteOption pasteOption = new PasteOption();
- pasteOption.getPasteType()
- .addAll(
- EnumSet.of(PasteType.Formulas, PasteType.Formats, PasteType.Values, PasteType.NumberFormats));
- workSheet.getRange(curTotalsRow, colIndex, dataRowCounts, 1)
- .copy(workSheet.getRange(curTotalsRow, i, dataRowCounts, 1), pasteOption);
复制代码 剪切要怎么把公式样式都复制到对应区域
- workSheet.getRange(curTotalsRow, colIndex, dataRowCounts, 1)
- .cut(workSheet.getRange(curTotalsRow, i, dataRowCounts, 1))
复制代码
|