Redo, Undo Commands (Edit Menu)

Office 2013 and later

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.


Reverses the last editing action, such as typing text in the Code window or deleting controls. When you delete one or more controls, you can use the Undo command to restore the controls and all their properties.

Toolbar shortcut tbr_undo_ZA01201762. Keyboard shortcuts: CTRL+Z or ALT+BACKSPACE.

Note Note

You can't undo a Cut operation using the Undo command on a form.


Restores the last text editing or resizing and positioning of controls if no other actions have occurred since the last Undo.

Toolbar shortcut tbr_redo_ZA01201734.

For text edits, you can use Undo and Redo to restore up to twenty edits.

These commands are unavailable at runtime, or if there was no previous edit, or if any other action has been performed after the last edit. Also, some large edits may cause low memory conditions that could prevent an Undo action.