Excel Online - onSingleClicked event for shapes to run commands

Excel Online - onSingleClicked event for shapes to run commands
0

Upvotes

Upvote

 Aug 25 2022
0 Comments 
New

If a shape has onSingleClicked event in Excel Online, it will be able to run a command after clicking on a shape.

A temporary solution is to use shape's onActivated event in Excel Online, but this trick doesn't work in Excel desktop.

Work with Events using the Excel JavaScript API - Office Add-ins | Microsoft Docs

Excel.Shape class - Office Add-ins | Microsoft Docs