Redo, Undo Commands (Edit Menu)
Collapse the table of content
Expand the table of content
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

Redo, Undo Commands (Edit Menu)

Office 2010
This page is specific to the Visual Basic for Applications (VBA) Language Reference for Office 2010.


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 Gg251724.tbr_undo_ZA01201762(en-us,office.14).gif. Keyboard shortcuts: CTRL+Z or ALT+BACKSPACE.


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 Gg251724.tbr_redo_ZA01201734(en-us,office.14).gif.

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.

© 2015 Microsoft