Thank you Artik,
I am confused as to how exactly the Application.OnUndo is suppose to work.
Im still not able to undo the action. I am calling a macro (PaymentLimit) in my Worksheet_SelectionChange routine. If the maximum number of payments has been exceeded the macro is triggered which affects other cells. I click on the OK button and press CTRL+z and all reverts back to the status before the erroneous entry which is great.
Heres the PaymentLimit
I am confused as to where to place the UnDo command and how to be coded. As a test, I created a second macro called UndoLimit. I tried running it via a shortcut key after clicking on the message box OK button but nothing happed.
Here is the UndoLimit
What I was hoping for was simple way to place a Ctrl+Z command after the message box appears but apparently that is not possible. Any other suggestions or assistance would be appreciated.
Thanks again,
Steve
Bookmarks