MoveAfterReturnDirection Property
Applies To
Application object.
Description
Returns or sets the direction in which the active cell is moved when the user presses ENTER. Can be one of the following XlDirection constants: xlToLeft, xlToRight, xlUp, or xlDown. Read/write Long.
Remarks
If the MoveAfterReturn property is False, the selection doesn't move at all, regardless of how the MoveAfterReturnDirection property is set.
See Also
MoveAfterReturn property.
Example
This example causes the active cell to move to the right when the user presses ENTER.
Application.MoveAfterReturn = True
Application.MoveAfterReturnDirection = xlToRight