Microsoft 365 and Office | Development | Office JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I have an Excel script that handles rows of dated information. The script runs fine until I try to use getSort().apply(). When the following line is included, the Excel workbook crashes:
db2.getUsedRange().getSort().apply([{ key: 0, ascending: false }], false, true, ExcelScript.SortOrientation.rows);