Understand the Office Scripts coding environment
mainOffice Scripts are written in TypeScript or JavaScript and use the Office Scripts JavaScript APIs to interact with Excel workbooks. The code editor is based on Visual Studio Code, providing a familiar environment for developers.
Key characteristics:
- Language: While the action recorder and documentation use TypeScript, any valid JavaScript will work because TypeScript is a superset of JavaScript.
- Self-contained: The editor manages installation, compilation, and execution automatically.
- API Scope: Scripts use a specialized version of the Office JavaScript APIs. Do not assume code written for Office Add-ins is directly portable to Office Scripts.