Navigating and Selecting Code in VBA

Use these VBA shortcuts in the Code window (used for writing, editing, and viewing VBA) and the Immediate window (which lets you run code any time, right on the spot) to get your jobs done quickly.



































































































































































ActionShortcut Key
Move cursor right one character
Select character to rightShift+→
Move cursor right one wordCtrl+→
Select to end of wordCtrl+ Shift+→
Move cursor left one character
Select character to left of cursorShift+←
Move cursor left one wordCtrl+←
Move cursor to start of lineHome
Select text to start of lineShift+Home
Move cursor to end of lineEnd
Select text to end of lineShift+End
Move cursor up a line
Move cursor down a line
Move cursor to next procedureCtrl+↓
Move cursor to previous procedureCtrl+↑
Scroll up one screenPgUp
Scroll down one screenPgDn
Go to top of moduleCtrl+Home
Select all text to top of moduleCtrl+ Shift+Home
Go to bottom of moduleCtrl+End
Select all text to bottom of moduleCtrl+ Shift+End
Cut selectionCtrl+X
Copy selectionCtrl+C
Paste selectionCtrl+V
Cut current line to ClipboardCtrl+Y
Delete to end of wordCtrl+Delete
Delete character or selected textDelete (Del)
Delete character to left of cursorBackspace
Delete to end of wordCtrl+Delete
Delete to beginning of wordCtrl+Backspace
UndoCtrl+Z
Indent lineTab
Outdent lineShift+Tab
FindCtrl+F
ReplaceCtrl+H
Find NextF3
Find PreviousShift+F3
Get help with currently selected wordF1
Quick InfoCtrl+I








dummies

Source:http://www.dummies.com/how-to/content/navigating-and-selecting-code-in-vba.html

No comments:

Post a Comment