executeOfficeJs
Execute an Office.js code snippet against the active workbook and persist the result. Returns any error plus the list of Office.js APIs the code used that are not yet implemented.
| Parameter | Type | Description | |
|---|---|---|---|
code | string | required | Office.js JavaScript to run against the active workbook. context (RequestContext) and Excel are in scope; call await context.sync() to flush writes. |