Evaluate Method
Evaluate(string)
Evaluates the specified Excel formula or named expression and returns the result.
The calculation behavior is consistent with Excel 2019 and earlier versions.
Declaration
object Evaluate(string formula)
Function Evaluate(formula As String) As Object
Parameters
Type |
Name |
Description |
string |
formula |
A string containing an Excel formula, named range, or defined name to evaluate.
|
Returns
Type |
Description |
object |
The result of the evaluation.
When the result of the formula is a reference, such as "=A1", it will return an IRange object.
|
Declaration
object Evaluate(string formula, IFormulaResolver resolver)
Function Evaluate(formula As String, resolver As IFormulaResolver) As Object
Parameters
Returns