- Workbook workbook = new Workbook();
- IWorksheet worksheet = workbook.getActiveSheet();
- worksheet.getRange("C1").setFormula("A1+B1");
- worksheet.getRange("2:2").insert();
- worksheet.getRange("C1").copy(worksheet.getRange("C2"), EnumSet.of(PasteType.Formulas));
复制代码 |