MoveAfterReturnDirection Property
Returns or sets the direction in which the active cell is moved when the user presses ENTER. Read/write XlDirection.
XlDirection can be one of these XlDirection constants. |
xlDown |
xlToLeft |
xlToRight |
xlUp |
expression.MoveAfterReturnDirection
expression Required. An expression that returns one of the objects in the Applies To list.
Remarks
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.
Application.MoveAfterReturn = True
Application.MoveAfterReturnDirection = xlToRight