Office Script in Sharepoint taking too long to run with buttons

Copper Contributor



I have a simple script in Excel online in Sharepoint 365 but is taking too long to run with buttons.

Runs faster when I just run the code.



function main(workbook: ExcelScript.Workbook) {
  // Check if the "Data" worksheet exists.


I don't know what I have to do to fix this.

0 Replies