Code window editing keys

Use these key combinations to edit code in the Code window.

Press To
CTRL+C Copy the selected text to the Clipboard.
CTRL+X Cut the selected text to the Clipboard.
DELETE or DEL Delete the selected text without placing it on the Clipboard.
CTRL+V Paste the Clipboard contents at the insertion point.
CTRL+Z Undo the last editing action in the current line.
CTRL+Y Cut the current line to the Clipboard.
CTRL+DELETE Delete to the end of the word.
CTRL+BACKSPACE Delete to the beginning of the word.
SHIFT+F4 Find Next: repeat text search down through your code. If no text search has been done, the Find dialog box is displayed.
SHIFT+F3 Find Previous: repeat text search up through your code. If no text search has been done, the Find dialog box is displayed.
SHIFT+TAB Remove indent.

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.