Hi All,
I know you can't redo results that are changed by the macro using CTRL + Z. But is it possible to create a macro to revert the changes to its previous result?
Thanks
Hi All,
I know you can't redo results that are changed by the macro using CTRL + Z. But is it possible to create a macro to revert the changes to its previous result?
Thanks
Good morning Eduards
It really depends what your macro does - you can write a module that will place the values of changed cells into an array to reinstate that data.
Jan Karel Pieterse has an article on his site discussing a pretty much generic VBA undo routine which you should be able to drop into your project relatively easily. There is also a downloadable example file.
https://www.jkp-ads.com/Articles/UndoWithVBA00.asp
HTH
DominicB
Please familiarise yourself with the rules before posting. You can find them here.
Thank you Dominic!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks