I'm building a VSTO Excel add-in that manipulates the values of multiple cells. I would like to allow the user to undo and redo the changes created by the add-in via the standard Excel features. I prefer to avoid using VBA.
Is this possible? If so, how?
Another question: is it possible to examine the existing undo/redo stack?
You failed to mention which version of Excel/.NET/VSTO runtime you wish to use, but it does not really matter :]
Custom Undo just cannot be done without injecting VBA, where you would need to set an undo method for rolling back your actions, by using compensation (i.e. reverse operations) or by restoring a saved state.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With