Code window menu shortcut keys

Use these key combinations for menu shortcuts in the Code window.

Press To
CTRL+P Print
CTRL+Z Undo
CTRL+V Paste
DEL or DELETE Delete
CTRL+F Find
SHIFT+F4 Find Next
CTRL+H Replace
TAB Indent
SHIFT+TAB Outdent
SHIFT+F2 Definition
CTRL+SHIFT+F2 Last Position
F2 Object Browser
CTRL+G Immediate window
CTRL+R Project Explorer
F4 Properties window
F8 Step Into
SHIFT+F8 Step Over
CTRL+F8 Run To Cursor
F9 Toggle Breakpoint
CTRL+SHIFT+F9 Clear All Breakpoints
F5 Run Sub/Form or Run Macro
CTRL+BREAK Break
SHIFT+F10 Shortcut menu
CTRL+J List Properties/Methods
CTRL+SHIFT+J List Constants
SHIFT+F9 Quick Watch
CTRL+M Import File
CTRL+E Export File
CTRL+I Quick Info
CTRL+SHIFT+I Parameter Info
CTRL+SPACEBAR Complete Word

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.