ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Preserve Excel undo stack (https://www.excelbanter.com/excel-programming/396583-preserve-excel-undo-stack.html)

Nehali Karpe

Preserve Excel undo stack
 
Hi,

Is it possible to preserve Excel undo stack after running a macro. It seems
that Excel clears the undo stack on running a macro and all the previous
operation are lost.

Any help appreciated.

NK



Mike H

Preserve Excel undo stack
 
you can but you need to write an undo routine for your macro using
application.undo and it can be difficult.

Have a looke here

http://j-walk.com/ss//excel/tips/tip23.htm

Mike

"Nehali Karpe" wrote:

Hi,

Is it possible to preserve Excel undo stack after running a macro. It seems
that Excel clears the undo stack on running a macro and all the previous
operation are lost.

Any help appreciated.

NK




Mike H

Preserve Excel undo stack
 
That was meant to be
application.onUndo

"Mike H" wrote:

you can but you need to write an undo routine for your macro using
application.undo and it can be difficult.

Have a looke here

http://j-walk.com/ss//excel/tips/tip23.htm

Mike

"Nehali Karpe" wrote:

Hi,

Is it possible to preserve Excel undo stack after running a macro. It seems
that Excel clears the undo stack on running a macro and all the previous
operation are lost.

Any help appreciated.

NK





All times are GMT +1. The time now is 03:06 PM.

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