Curious if there's an event that's fired when a worksheet is renamed. Haven't found anything in the API reference, but maybe I'm missing something.
Curious if there's an event that's fired when a worksheet is renamed. Haven't found anything in the API reference, but maybe I'm missing something.
Unfortunately, Office JS Excel API currently doesn't support worksheet.onRenamed event. So, I would suggest that you could submit the request and upvote this request at uservoice
But there is a workaround approach that you could have a try: track the events at worksheet collection. Listen the onActivated event, store a reference to the active sheet as well as its name. When the sheet is onDeactivated(and another activated) compare the name of the sheet reference against the stored string.
Update 2021: This feature is currently available in the preview version of the Excel JavaScript API.