0

I am using script in Excel for the Web and it is working fine. Now I try to use events but it does not seem to work there, are the events in excel Excel web supported ? Something like this from the tutorial:

  const sheet = context.workbook.worksheets.getItem("Sample");
  sheet.onActivated.add(function (event) {
    return Excel.run(async (context) => {
      console.log("The activated worksheet ID is: " + event.worksheetId);
      await context.sync();
    });
  });
  await context.sync();
});
Eugene Astafiev
  • 47,483
  • 3
  • 24
  • 45
laloune
  • 548
  • 1
  • 9
  • 26

1 Answers1

0

Make sure Excel API 1.7 is supported by the host application. Read more about events in Excel in the Work with Events using the Excel JavaScript API article.

Eugene Astafiev
  • 47,483
  • 3
  • 24
  • 45