Excel.CalculationMode enum

Remarks

[ API set: ExcelApi 1.1 ]

Examples

// Link to full sample: https://raw.githubusercontent.com/OfficeDev/office-js-snippets/prod/samples/excel/50-workbook/workbook-calculation.yaml

await Excel.run(async (context) => {
  context.application.calculationMode = Excel.CalculationMode.manual;
  context.application.load("calculationMode");
  await context.sync();

  console.log("Current calculation mode: " + context.application.calculationMode);
});

Fields

automatic = "Automatic"

The default recalculation behavior where Excel calculates new formula results every time the relevant data is changed.

automaticExceptTables = "AutomaticExceptTables"

Calculates new formula results every time the relevant data is changed, unless the formula is in a data table.

manual = "Manual"

Calculations only occur when the user or add-in requests them.