You can undo, redo, or repeat many actions in Microsoft Word, PowerPoint, and Excel. You can undo changes, even after you have saved, and then save again, as long as you are within the undo limits (By default Office saves the last 100 undoable actions). 

Undo an action

To undo an action press Ctrl+Z on your keyboard, or select Undo on the Quick Access Toolbar. You can press Undo (or Ctrl+Z) repeatedly if you want to undo multiple steps.

The Undo command on the Quick Access Toolbar

Note: For more information about the Quick Access Toolbar, see Customize the Quick Access Toolbar.

You can't undo some actions, such as selecting commands on the File tab or saving a file. If you can't undo an action, the Undo command changes to Can't Undo.

To undo several actions at the same time, select the arrow next to Undo Undo button, select the actions in the list that you want to undo, and then select the list.

Tip: If you're not able to undo the changes you wish to revert, you may be able to restore a previous version of the file. See Restore a previous version of a file in OneDrive or OneDrive for Business

Redo an action

To redo something you've undone, press Ctrl+Y or F4. (If F4 doesn't seem to work, you may need to press the F-Lock key or Fn Key, then F4) on your keyboard, or select Redo on the Quick Access toolbar. (The Redo button only appears after you've undone an action.)

The Redo command on the Quick Access Toolbar

Note: For more information about the Quick Access Toolbar, see Customize the Quick Access Toolbar.

Repeat an action

To repeat something simple, such as a paste operation, press Ctrl+Y or F4 (If F4 doesn't seem to work, you may need to press the F-Lock key or Fn Key, then F4) on your keyboard, or select Repeat on the Quick Access Toolbar.

The Repeat command on the Quick Access Toolbar

Notes: 

  • By default, the Repeat command Button image is not available on the Quick Access Toolbar in Excel. If you want to repeat the last action, you need to add the Repeat command to the Quick Access Toolbar first. See Add a command to the Quick Access Toolbar that isn’t on the ribbon for steps.

  • Some actions, such as using a function in a cell in Excel, can’t be repeated. If you can't repeat the last action, the Repeat command changes to Can't Repeat.

Excel and all other Office programs have a default undo/redo maximum of 100 actions. However, you can change this by adding an entry in the Microsoft Windows registry.

Important: Remember that some actions, such as clicking commands on the File tab or saving a file, can't be undone, and running a macro in Excel will clear the undo stack, making the action unavailable.

Warning: Increasing the number of undo levels should be done with caution and moderation: the more you increase the number of undo levels, the more random access memory (RAM) Excel requires to store the undo history, which affects the performance of Excel.

The following procedure uses the Registry Editor to change the number of undo levels for Excel, although you can do the same in Word or PowerPoint.

  1. Close any Office programs that are running.

  2. In Windows 10 or Windows 8, right-click (or long-press) the Start button, and then select Run.

  3. In the search box or the Run window, type regedit and press Enter.

    Depending on your version of Windows, you may be asked to confirm that you want to open Registry Editor.

  4. In Registry Editor, expand one of the following registry subkeys, as appropriate for the version of Excel that you are running:

    • Excel 2016: HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Excel\Options

  5. On the Edit menu, point to New, and then select DWORD Value. Select New Value #1, type UndoHistory, and then press ENTER.

  6. On the Edit menu, select Modify.

  7. In the Edit DWORD Value dialog box, select Decimal under Base. Type a value in the Value box, select OK, and then exit Registry Editor.

  8. Start Excel. Excel stores an undo history for the number of actions that you specified in step 7.

Related links

Customize the Quick Access Toolbar (Windows)

Configure or turn off automatic text formatting (AutoFormat)

Undo an action

Press The Command button on macOS.+ Z, or select Undo in the upper-left corner of the ribbon, until you've fixed the issue.

The Undo command is highlighted on the ribbon.

You can't undo some actions, such as selecting commands on the File menu or saving a file. If you can't undo an action, the Undo command changes to Can't Undo.

To undo several actions at the same time, select the arrow next to Undo, select the actions in the list that you want to undo, and then select the list.

Tip: If you're not able to undo the changes you wish to revert, you may be able to restore a previous version of the file. See Restore a previous version of a file in OneDrive or OneDrive for Business

Redo an action

To redo something you've undone, press The Command button on macOS.+ Y, or select Redo in the upper-left corner of the ribbon. (The Redo button only appears after you've undone an action.)

The Redo command is highlighted on the ribbon.

Repeat an action

To repeat something simple, such as a paste operation, press The Command button on macOS.+ Y, or select Repeat in the upper-left corner of the ribbon.

The Repeat icon is highlighted on the ribbon.

In Word for the web, PowerPoint for the web, and Excel for the web, you can undo or redo basic actions. More advanced options are available in desktop versions of Office.

Undo an action

Press Ctrl+Z or select  Undo button in Word Online (Undo) in the ribbon until you've fixed the issue.

The Undo button in Microsoft Word for the web.

You can't undo some actions, such as selecting commands on the File tab or saving a file. If you can't undo an action, the Undo command is dimmed. undo button when undo isn't available in Word Online.

Tip: If you're not able to undo the changes you wish to revert, you may be able to restore a previous version of the file. See Restore a previous version of a file in OneDrive or OneDrive for Business

Redo an action

To redo something you've undone, press Ctrl+Y or select  redo a change in word online (Redo) in the ribbon.

The Redo button in Microsoft Word for the web.

Repeat an action

To repeat something simple, such as a paste operation, press Ctrl+Y on your keyboard or select Repeat on the Home tab. 

The Repeat button in Microsoft Word on the web.

Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.