A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
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.