Code Window General Use Keys

Microsoft Visual Basic User Interface

Code Window General Use Keys

   

Use these key combinations in the Code window:

Press To
F1 Get context-sensitive Help on functions, statements, methods, properties, or events.
F2 Display the Object Browser.
F9 Set or remove a breakpoint.
CTRL+SHIFT+F9 Clear all breakpoints.
F5 Run a Sub/UserForm or macro.
F8 Execute code one line at a time (single step).
SHIFT+F8 Execute code one procedure at a time (procedure step).
CTRL+BREAK Stop running a Visual Basic application.
HOME Move the cursor to the beginning of text in a line.
END Move the cursor to the end of text in a line.
Double-click on the split bar Delete the split bar.
SHIFT+F10 View shortcut menu.
ALT+F5 Runs the error handler code or returns the error to the calling procedure. Does not affect the setting for error trapping on the General tab of the Options dialog box.
ALT+F8 Steps into the error handler or returns the error to the calling procedure. Does not affect the setting for error trapping on the General tab of the Options dialog box.
CTRL+J Turn on ListProperties/Methods.
CTRL+SHIFT+J Turn on List Constants.
CTRL+I Turn on Quick Info.
CTRL+SHIFT+I Turn on Parameter Info.
CTRL+SPACEBAR Turn on Complete Word.