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
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.
Váš názor
https://aka.ms/ContentUserFeedback.
Připravujeme: V průběhu roku 2024 budeme postupně vyřazovat problémy z GitHub coby mechanismus zpětné vazby pro obsah a nahrazovat ho novým systémem zpětné vazby. Další informace naleznete v tématu:Odeslat a zobrazit názory pro