How to support Undo

45 views
Skip to first unread message

Jiri Pik

unread,
Dec 30, 2013, 6:11:49 PM12/30/13
to exce...@googlegroups.com

Is there any easy way how to support Undo of any write operation I do on an excel sheet?

 

For example, the result of my function is a range. I convert it to a range formula, in doing so, I overwrite some cells and the user would like to undo this function.

 

 

Govert van Drimmelen

unread,
Dec 30, 2013, 6:35:40 PM12/30/13
to exce...@googlegroups.com
Hi Jiri,

The only customizable Undo support that Excel has, is to set a macro to run as the (one) current Undo step. For this you call Application.OnUndo(...)
But you have to keep track of whatever information you need to undo the work, and it doesn't support a stack of Undo operations, the user will be left with only a single level of Undo.


-Govert
Reply all
Reply to author
Forward
0 new messages