I'm writing an MS Excel add-in. And I need to do some actions trough all selected sheets in a workbook. The problem is... I can't find any API that allows me to get access of selected sheets in the documentation. Neither for sheet collections, not workbook, or property of sheet.
What I need is:
Excel.run(async (context) => {
const { worksheets } = context.workbook;
worksheets.load('name');
await context.sync();
worksheets.items.forEach((ws) => {
if (ws.IS_SELECTED) {
// do staff here
}
});
});
I need this IS_SELECTED property.