ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Undo macros (https://www.excelbanter.com/excel-programming/326759-undo-macros.html)

Adam

Undo macros
 
I have a button assigned to a macro. Is it possible to undo that macro once
you have pushed the button?

Trevor Shuttleworth

Undo macros
 
Adam

no, not unless you build your own undo stack. Basically, a macro can carry
out numerous actions and I guess Excel just doesn't keep a track of them
and, in fact, resets the undo stack.

Regards

Trevor


"Adam" wrote in message
...
I have a button assigned to a macro. Is it possible to undo that macro once
you have pushed the button?




Tom Ogilvy

Undo macros
 
Most actions performed by an macro can not be undone - in fact, most macro
instructions clear the undo history so any previously available undo's are
cleared/lost.

--
Regards,
Tom Ogilvy


"Adam" wrote in message
...
I have a button assigned to a macro. Is it possible to undo that macro

once
you have pushed the button?




Tony

Undo macros
 
Try saving the original state of the workbook/sheet as the
first step in the process, then you can offer your own
undo feature.

Tony


-----Original Message-----
Most actions performed by an macro can not be undone - in

fact, most macro
instructions clear the undo history so any previously

available undo's are
cleared/lost.

--
Regards,
Tom Ogilvy


"Adam" wrote in message
...
I have a button assigned to a macro. Is it possible to

undo that macro
once
you have pushed the button?



.



All times are GMT +1. The time now is 09:30 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com