本帖最后由 Ellia.Duan 于 2023-10-16 15:02 编辑
您好,您可以通过下面的代码重新为条件格式设置区域
- IFormatCondition condition3 = (IFormatCondition)worksheet.getUsedRange().getFormatConditions().get(2);
- condition3.setAppliesTo(worksheet.getRange("I5:L126"));
- IFormatCondition condition4 = (IFormatCondition)worksheet.getUsedRange().getFormatConditions().get(3);
- condition4.setAppliesTo(worksheet.getRange("I5:L126"));
复制代码
|