SelectRow 方法

       

选定插入点所在的行,或者选定所选内容所在行。如果所选内容不在表格中,则会导致错误。

expression.SelectRow

expression   必需。该表达式返回一个 Selection 对象。

示例

本示例将选定内容折叠至开始位置,然后选定插入点所在的行。

Selection.Collapse Direction:=wdCollapseStart
If Selection.Information(wdWithInTable) = True Then
    Selection.SelectRow
End If