Cut, Copy, Paste, and Delete Commands (Edit Menu)

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

Cut

Removes the selected control or text and places it on the Clipboard. You must select at least one character or control for this command to be available. You can undo the Cut command when used on a control.

Toolbar shortcut: Gg251608.tbr_cut_ZA01201694(en-us,office.14).gif. Keyboard shortcut: CTRL+X or SHIFT+DELETE.

Copy

Copies the selected control or text onto the Clipboard. You must select at least one character or control for this command to be available. You cannot undo the Copy command in the Code window.

Toolbar shortcut: Gg251608.tbr_copy_ZA01201692(en-us,office.14).gif. Keyboard shortcut: CTRL+C or CTRL+INSERT

Paste

Inserts the contents of the Clipboard at the current location. Text is placed at the insertion point.

Pasted controls are placed in the middle of the form.

You can undo the Paste command in the Code window or in the form if you pasted the control onto the form.

Toolbar shortcut: Gg251608.tbr_pste_ZA01201730(en-us,office.14).gif. Keyboard shortcut: CTRL+V or SHIFT+INS.

Delete

Deletes the currently selected control, text, or watch expression. You can undo the Delete command only in the Code window.

Note

To delete a file from your disk, use the standard deletion procedures for your operating system.

Toolbar shortcut: Gg251608.tbr_del_ZA01201696(en-us,office.14).gif. Keyboard shortcut: DEL.

Not available at run time.