0

I have a lot of VBA/VSTO excel addins based on ability to define user's selected chartobjects, such as chart, series and point. Is there analog of function getSelectedRange but for chartobject in Office JS API. Thanks

Eugene Astafiev
  • 47,483
  • 3
  • 24
  • 45
  • There's an event. Maybe you can set a global variable that contains the selected chart (or something) when that event is fired. https://learn.microsoft.com/en-us/javascript/api/excel/excel.chart?view=excel-js-preview#excel-excel-chart-onactivated-member – Skin Apr 20 '22 at 23:31

1 Answers1

1

We have a getActiveChart() JS API. Here is the doc. Hope it works for you.Thanks.

JHJ-MS
  • 102
  • 3