This documentation is archived and is not being maintained.

Clearand Delete Commands (Edit Menu)

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


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: Gg251736.tbr_del_ZA01201696(en-us,office.14).gif. Keyboard shortcut: DELETE.

Not available at run time.