Https://docs.microsoft.com/en-us/javascript/api/excel/excel.application?view=office-js
Represents the Excel application that manages the workbook.
[API SET:EXCELAPI 1.1]
-
Extends
- Officeextension.clientobject
Properties
Calculationmode |
Returns The calculation mode used in the workbook, as defined by the constants in Excel.calculationmode. Possible values is: Automatic , where Excel controls recalculation; AutomaticExceptTables , where Excel controls recalculation but ignores Chan GES in tables; Manual , where calculation is do when the user requests it. [API Set:excelapi 1.1 for GET, 1.8 for set] |
Methods
Calculate (CalculationType) |
Recalculate all currently opened workbooks in Excel. [API SET:EXCELAPI 1.1] |
Load (option) |
Queues up a command to load the specified properties of the object. You must call "Context.sync ()" Before reading the properties. |
Suspendapicalculationuntilnextsync () |
Suspends calculation until the next "Context.sync ()" is called. Once set, it is the developer's responsibility to re-calc the workbook, to ensure that any dependencies be propagated. [API SET:EXCELAPI 1.6] |
ToJSON ()
Property Detailscalculationmode
Returns The calculation mode used in the workbook, as defined by the constants in Excel.calculationmode. Possible values is: Automatic
, where Excel controls recalculation; AutomaticExceptTables
, where Excel controls recalculation but ignores Chan GES in tables; Manual
, where calculation is do when the user requests it.
[API Set:excelapi 1.1 for GET, 1.8 for set]
TypeScriptCopy
Property ValueExcel.calculationmode | "Automatic" | "Automaticexcepttables" | "Manual"Method detailscalculate (CalculationType)
Recalculate all currently opened workbooks in Excel.
[API SET:EXCELAPI 1.1]
TypeScriptCopy
Parameters
-
CalculationType
-
Excel.calculationtype
Specifies the calculation type to use. See Excel.calculationtype for details.
ReturnsvoidExamplesJavaScriptCopy
Load (option)
Queues up a command to load the specified properties of the object. You must call "Context.sync ()" Before reading the properties.
TypeScriptCopy
Parameters
-
Option
- string | string[]
A comma-delimited string or an array of strings this specify the properties/relationships to load.
Returnsexcel.applicationremarks
In addition to this signature, this method has the following signatures:
load(option?: { select?: string; expand?: string; }): Excel.Application
-Where Option.select is a comma-delimited string that specifies the properties/relationships to load, and Options.expand is a comma-delimited string, specifies the relationships to load.
load(option?: { select?: string; expand?: string; top?: number; skip?: number }): Excel.Application
-Only available on collection types. It's similar to the preceding signature. OPTION.TOP Specifies the maximum number of collection items that can is included in the result. OPTION.SKIP Specifies the number of items that is to is skipped and not included in the result. If Option.top is specified, the result set would start after skipping the specified number of items.
ExamplesJavaScriptCopy
Suspendapicalculationuntilnextsync ()
Suspends calculation until the next "Context.sync ()" is called. Once set, it is the developer's responsibility to re-calc the workbook, to ensure that any dependencies be propagated.
[API SET:EXCELAPI 1.6]
TypeScriptCopy
ReturnsvoidToJSON ()TypeScriptCopy
ReturnsExcel.Interfaces.ApplicationData
Excel.Application class