_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)

Syntax

'Declaration
Property MoveAfterReturnDirection As XlDirection
    Get
    Set
'Usage
Dim instance As _Application
Dim value As XlDirection

value = instance.MoveAfterReturnDirection

instance.MoveAfterReturnDirection = value
XlDirection MoveAfterReturnDirection { get; set; }

Property Value

Type: Microsoft.Office.Interop.Excel.XlDirection

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.

See Also

Reference

_Application Interface

_Application Members

Microsoft.Office.Interop.Excel Namespace