What does clicking the button do and what is the "everything" which is happening?
After it happens, you could wait five seconds and then undo what has happened, if you know at that point exactly what that "everything" is.
Alternatively you could save the sheet before "everything happens", then after it has happened, wait five seconds and reload the sheet from the saved version.