How to identify the Excel Sheet changed event in office js api?

后端 未结 3 877
日久生厌
日久生厌 2021-01-16 07:57

We have an Excel office js add-in written on angular. It has different functionalities based on the sheet the user is in. When users switch the sheets of excel, how can the

3条回答
  •  粉色の甜心
    2021-01-16 08:30

    There isn't a sheet-changed event. However, one workaround would be to subscribe to DocumentSelectionChanged events, then check the user's active sheet each time to see if it changed.

提交回复
热议问题