Clearand Delete 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.


Deletes text only when a module is active.


At other times, changes to the Delete command that deletes the currently selected control, text, or watch expression. You can undo the Delete command in the Code window or in the form if you deleted the control from the form.

Toolbar shortcut: tbr_del_ZA01201696. Keyboard shortcut: DELETE.

Not available at run time.