Office Scripts is a feature that allows you to automate tasks in Microsoft Office using TypeScript. Currently, this feature is only supported in Excel. Use this tag to ask programming questions about Office Scripts, and consider adding the related tags Excel and TypeScript where relevant.
Office Scripts is a feature that allows you to automate tasks in Microsoft Office using TypeScript.
Currently, this feature is only supported in Excel.
Office Scripts can be created either by using a macro recorder, or by manually writing the script.
Office Scripts contrast themselves from VBA by being usable in Office Online, being primarily asynchronous (while VBA is nearly always synchronous), and lacking support for events. Office Scripts also cannot work with local files and programs.
The documentation is available here: https://learn.microsoft.com/en-us/office/dev/scripts/
Office Scripts use a subset of the Excel JavaScript API, the documentation for that can be found here: https://learn.microsoft.com/en-us/office/dev/add-ins/reference/overview/excel-add-ins-reference-overview