Export (0) Print
Expand All
Expand Minimize

Immediate Window Keyboard Shortcuts

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

Use these key combinations in the Immediate window:

ENTER

Run a line of selected code.

CTRL+C

Copy the selected text to the Clipboard.

CTRL+V

Paste the Clipboard contents at the insertion point.

CTRL+X

Cut the selected text to the Clipboard.

CTRL+L

Display Call Stack dialog box (break mode only).

F5

Continue running an application.

F8

Execute code one line at a time (single step).

SHIFT+F8

Execute code one procedure at a time (procedure step).

DELETE or DEL

Delete the selected text without placing it on the Clipboard.

F2

Display the Object Browser.

CTRL+ENTER

Insert carriage return.

CTRL+HOME

Move the cursor to the top of the Immediate window.

CTRL+END

Move the cursor to the end of the Immediate window.

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.

Show:
© 2015 Microsoft