Xceed Workbooks for .NET v2.0 Documentation
CalculateFormula Method
Example 


Xceed.Workbooks.NET Assembly > Xceed.Workbooks.NET Namespace > Cell Class : CalculateFormula Method
Starts the calculation process in order to get a value from the Cell's formula.
Syntax
'Declaration
 
Public Sub CalculateFormula() 
'Usage
 
Dim instance As Cell
 
instance.CalculateFormula()
public void CalculateFormula()
Remarks
The Value property will be updated with the result of the calculation once it is over.
Example
worksheet.Cells[ "E1" ].Formula = "=SUM(A1, B1, A2) * B2 + 4";

worksheet.Cells[ "E1" ].CalculateFormula();
var result = worksheet.Cells[ "E1"].Value;
Requirements

Target Platforms: Windows 11, Windows 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

Cell Class
Cell Members