hatman
Well-known Member
- Joined
- Apr 8, 2005
- Messages
- 2,664
Some months ago, I stumbled across this article on John Walkenbach's site.
I filed it away, in the event it ever became useful. Last month, I finally used the methods John describes to add Undo and Redo capability to a Dictator application I have been developing for the last couple of years. In general, I am very pleased with the results.
One thing that I picked up from the Microsoft Help is that running a macro clears the Undo stack, and then the OnUndo method re-populates the last position, and only the last position of the stack. Obviously, it's a LIFO stack, even though the OnUndo method only gives access to the last position.
I was wondering if anyone else had done much playing with this. If the developers had provided a way to populate the Undo Stack to greater depth, I would expect to have found some mention in the online help, or at Microsoft.MSDN.Net. But there is nothing. So I am thinking about a Static Array, or a table on a hidden sheet to store my own Undo Stack... I don;t know... probably more trouble than it's worth... but sometimes, it's nice to be able to Undo several commands, rather than only One.
Any feedback, comments or discussion are appreciated...
I filed it away, in the event it ever became useful. Last month, I finally used the methods John describes to add Undo and Redo capability to a Dictator application I have been developing for the last couple of years. In general, I am very pleased with the results.
One thing that I picked up from the Microsoft Help is that running a macro clears the Undo stack, and then the OnUndo method re-populates the last position, and only the last position of the stack. Obviously, it's a LIFO stack, even though the OnUndo method only gives access to the last position.
I was wondering if anyone else had done much playing with this. If the developers had provided a way to populate the Undo Stack to greater depth, I would expect to have found some mention in the online help, or at Microsoft.MSDN.Net. But there is nothing. So I am thinking about a Static Array, or a table on a hidden sheet to store my own Undo Stack... I don;t know... probably more trouble than it's worth... but sometimes, it's nice to be able to Undo several commands, rather than only One.
Any feedback, comments or discussion are appreciated...