MoveAfterReturnDirection 属性

       

返回或设置当用户按 Enter 时,活动单元格选定框的移动方向。XlDirection 类型,可读写。

expression.MoveAfterReturnDirection

expression   必需。该表达式返回“应用于”列表中的对象之一。

说明

如果 MoveAfterReturn 该属性值为 False,则选定内容并不会移动,无论 MoveAfterReturnDirection 属性如何设置。

示例

本示例将用户按 Enter 时活动单元格选项框的移动方向定义为右移一单元格。

Application.MoveAfterReturn = True
Application.MoveAfterReturnDirection = xlToRight