Share via

Undo buffer clears

Anonymous
2011-11-17T04:21:40+00:00

When I run a simple macro that does not include any special code for clearing the undo buffer, the undo buffer is cleared.

Is this the default for macros in Excel 2010? I have found no notation in MSDN concerning this.

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Anonymous
2011-11-17T06:14:32+00:00

Many macro actions clear the undo stack. Generally speaking: as soon as your macro changes any object in your workbook. There is no way to prevent that from happening unfortunately. If you want to be able to undo macro actions, you will have to write code to do so. Even then, the current undo stack is lost.

See: www.jkp-ads.com/articles/undowithvba00.asp

Was this answer helpful?

2 people found this answer helpful.
0 comments No comments

0 additional answers

Sort by: Most helpful