Skip to content

Latest commit

 

History

History
50 lines (30 loc) · 1.2 KB

Excel.Application.MoveAfterReturnDirection.md

File metadata and controls

50 lines (30 loc) · 1.2 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
Application.MoveAfterReturnDirection property (Excel)
vbaxl10.chm133169
vbaxl10.chm133169
Excel.Application.MoveAfterReturnDirection
c11d8e36-755e-c911-de44-8b630b549418
04/05/2019
medium

Application.MoveAfterReturnDirection property (Excel)

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 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.

Application.MoveAfterReturn = True 
Application.MoveAfterReturnDirection = xlToRight

[!includeSupport and feedback]