Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Description

Excerpt

The CalculateFormulas method calculates any Calculation Engine Supported Formulas in the area. Any formulas in the area that are not supported by the Calculation Engine will be set as 0.

Signature
0csharp
 public void CalculateFormulas()
Signature
0vb
 Public Sub CalculateFormulas()
Example
Code Block
titleC#
languagec#
//Create an ExcelApplication object
ExcelApplication xla = new ExcelApplication();

//Open a workbook containing formulas
Workbook wb = xla.Open("FormulasWorkbook.xlsx); 

 
// Create an area
Area a= wb[0].CreateArea("=A1:C4");
 
//Call CalculateFormulas
a.CalculateFormulas();
Code Block
titleVB
languagevb
'Create an ExcelApplication object
Dim xla As New ExcelApplication
 
'Open a workbook containing formulas
Dim wb As Workbook = xla.Open("formulasWorkbook.xlsx")
 

'Create an area
Dim a as Area= wb[0].CreateArea("=A1:C4")
 
'Call Calculateformulas
wb.CalculateFormulas()