Export (0) Print
Expand All
Expand Minimize

Application.MoveAfterReturnDirection Property

Office 2007
Returns or sets the direction in which the active cell is moved when the user presses ENTER. Read/write XlDirection.

Syntax

expression.MoveAfterReturnDirection

expression   A variable that represents an Application object.

Remarks

XlDirection can be one of these XlDirection constants.
xlDown
xlToLeft
xlToRight
xlUp

If the MoveAfterReturn property is False, the selection doesn’t move at all, regardless of how the MoveAfterReturnDirection property is set.

Example

This example causes the active cell to move to the right when the user presses ENTER.

Visual Basic for Applications
Application.MoveAfterReturn = True
Application.MoveAfterReturnDirection = xlToRight



Community Additions

ADD
Show:
© 2015 Microsoft