stephanecoze's avatar
stephanecoze
Brass Contributor
Apr 16, 2026
Status:
New

Add Workbook.calculate() to avoid recalculating all open workbooks

Today, the Office.js API exposes Excel.Application.calculate(calculationType), but it recalculates all currently opened workbooks in Excel. This becomes a performance and UX problem when users have multiple large workbooks open and an add-in needs to trigger calculation only for the workbook it’s running in.

Request: Please add a workbook-scoped calculate API that recalculates only the active workbook, while reusing the existing Excel.CalculationType enum (recalculate, full, fullRebuild).

Example API shape (one option):

await Excel.run(async (context) => {

context.workbook.calculate(Excel.CalculationType.recalculate);

await context.sync();

});

 

This would preserve the current semantics of Excel.CalculationType while avoiding unintended recalculation of unrelated open workbooks (the current Application.calculate behavior).

 

No CommentsBe the first to comment