可能的使用场景 实现类似于Excel VBA Range.FormulaLocal的Cell.FormulaLocal 示例代码 控制台输出可能的使用场景Microsoft Excel公式在不同的时区、地区或语言中可能有不同的名称。例如,SUM函数在German中被称为SUMME。Aspose.Cells无法处理非英文函数名称。在Microsoft Excel VBA中,有一个Range.FormulaLocal属性,返回函数...
expression.FormulaLocal expressionA variable that represents aSeriesobject. Remarks If the cell contains a constant, this property returns that constant. If the cell is empty, the property returns an empty string. If the cell contains a formula, the property returns the formula as a string, in ...
'那么对整个数组区域重写数组公式,加入round函数进行数据四舍五入 Cell.CurrentArray.FormulaArray = '=' & 'round(' & Right(Cell.FormulaLocal, Len(Cell.FormulaLocal) - 1) & ',' & Ans & ')' End If Else '否则对普通公式添加round函数进行四舍五入 Cell.Formula = '=' & 'round(' & Right(Cell...