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();
});