This documentation is archived and is not being maintained.

Code Window Keyboard Shortcuts

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

You can use the following shortcut keys to access commands in the Code window.

Description

Shortcut Keys

View Code window

F7

View Object Browser

F2

Find

CTRL+F

Replace

CTRL+H

Find Next

F3

Find Previous

SHIFT+F3

Next procedure

CTRL+DOWN ARROW

Previous procedure

CTRL+UP ARROW

View definition

SHIFT+F2

Shift one screen down

CTRL+PAGE DOWN

Shift one screen up

CTRL+PAGE UP

Go to last position

CTRL+SHIFT+F2

Beginning of module

CTRL+HOME

End of module

CTRL+END

Move one word to right

CTRL+RIGHT ARROW

Move one word to left

CTRL+LEFT ARROW

Move to end of line

END

Move to beginning of line

HOME

Undo

CTRL+Z

Delete current line

CTRL+Y

Delete to end of word

CTRL+DELETE

Indent

TAB

Outdent

SHIFT+TAB

Clear all breakpoints

CTRL+SHIFT+F9

View shortcut menu

SHIFT+F10

Show: