_Application.MoveAfterReturnDirection property

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

Namespace:  Microsoft.Office.Interop.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)

XlDirection MoveAfterReturnDirection { get; set; }

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.

Show: