Undo, redo, or repeat an action

You can undo, redo, or repeat many actions in Microsoft Word, PowerPoint, and Excel.

Undo an action

Press Ctrl+Z until you've fixed your mistake.

Or press Alt+Backspace to do the same thing.

If you prefer your mouse, click Undo on the Quick Access Toolbar.

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 clicking 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, click the arrow next to Undo Button image , select the actions in the list that you want to undo, and then click the list.

Redo an action

To redo something you've undone, press Ctrl+Y or F4. (If F4 doesn't seem to work, press the F-Lock key, then F4).

Or click 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, press the F-Lock key, then F4).

Or click 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 the Start button and click Run.

    In Windows 7 or Windows Vista, click Start.

    In Windows XP, click the Start button, and then click 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 2007: HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\Excel\Options

    • Excel 2010: HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Excel\Options

    • Excel 2013: HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\Excel\Options

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

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

  6. On the Edit menu, click Modify.

  7. In the Edit DWORD Value dialog box, click Decimal under Base. Type a value in the Value box, click 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 COMMAND + Z until you've fixed your mistake.

Or, click Undo in the upper-left corner of the ribbon.

The Undo command is highlighted on the ribbon.

You can't undo some actions, such as clicking 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, click the arrow next to Undo, select the actions in the list that you want to undo, and then click the list.

Redo an action

To redo something you've undone, press COMMAND + Y.

Or, click 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 COMMAND + Y.

Or, click Repeat in the upper-left corner of the ribbon.

The Repeat icon is highlighted on the ribbon.

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

Undo an action

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

undo a change in Word Online

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. undo button when undo isn't available in Word Online .

Redo an action

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

redo a change in word online

Share Facebook Facebook Twitter Twitter Email Email

Was this information helpful?

Great! Any other feedback?

How can we improve it?

Thank you for your feedback!

×