Microsoft

Keyboard shortcuts for the Visual Basic Editor

keyboard-shortcuts

The Visual Basic Editor (VBE) is the development environment in the MS Office applications. Fortunately, there are a number of keyboard shortcuts that you can use to work more efficiently while entering, viewing, and editing code.

Keyboard Shortcouts :

General
Alt + F11This toggles switch displays the VBE from the application window and vice versa.
Ctrl + GDisplays Immediate window.
Ctrl + FOpens the Find dialog box.
F3Find Next.
Shift + F3Find Previous.
Ctrl + HOpens the Replace dialog box.
Ctrl + ZCancels the last keyboard stroke or the last mouse operation (when possible.)
F5Runs the current procedure or continues execution after pausing.
Ctrl + BreakHalts a procedure.
Shift + F5Terminates a procedure and resets all variables to their default values.
Shift + F10Displays the active window’s shortcut menu.
Ctrl + ROpens the Project Explorer.
F4Opens the Properties window.
F2Opens the Object Browser.
F1Opens VBA Help.
F7Gives focus to the open module window.
Code module
Ctrl + Down ArrowSelect next procedure.
Ctrl + Up ArrowSelect previous procedure.
Ctrl + Page DownShift one screen down.
Ctrl + Page UpShift one screen up.
Ctrl + Shift + F2Go to last position.
Ctrl + HomeGo to beginning of module. (Also in the Immediate window.)
Ctrl + EndGo to end of module. (Also in the Immediate window.)
Ctrl + Right ArrowMove one word to the right.
Ctrl + Left ArrowMove one word to the left.
EndMove to the end of the line.
HomeMove to the beginning of the line.
Ctrl + YDelete current line.
Ctrl + DeleteDelete to end of word.
Ctrl + Shift + F9Clear all breakpoints.
Project Explorer
F7Shift + EnterOpen the selected file’s module.
HomeSelect the first file in the list.
EndSelect the last file in the list.
Right arrowExpands a sublist.
Left arrowCollapses a sublist.
Up arrowMoves up the list one item at a time.
Down arrowMoves down the list one item at a time.

[via]

Admin

We hope, We will become the best, creative and inspiring community for web and graphics. Join Us! Can be part of the growing Team. Just write something Creative and Interesting. Click here to become a member.

7 thoughts on “Keyboard shortcuts for the Visual Basic Editor”

Comments are closed.

0 Shares
Tweet
Share
Share
Pin