Undo an action. Press Ctrl+Z or click (Undo) in the ribbon until you've fixed your mistake. You can't undo some actions, such as clicking commands on the File tab or saving a file. If you can't undo an action, the Undo command is dimmed.