Rajat Panjavani
Rajat Panjavani

Reputation: 53

Is any way to add the changes to undo/redo stack made by Excel addin?

Here I am using Office.js API in Excel add-in. When I export any table or information using Excel add-in, the undo and redo buttons are disabled, and the undo/redo stack is cleared.

enter image description here

Thank you in advance

Upvotes: 5

Views: 467

Answers (1)

Jinghui-MSFT
Jinghui-MSFT

Reputation: 131

Thanks for reporting this question. Excel currently clears its undo stack after add-in operations. We’re looking at ways to support this in the future for the JavaScript APIs only in a way that will require almost no change on your part, but it will take some time to add that support such that we can light it up (we want to make sure all APIs are covered before lighting up add-in undo). BTW, as the add-in action may trigger save/auto-save, it’s not a trivial work to keep a reliable undo stack without the add-in actions.

Upvotes: 6

Related Questions