SelectRow Method

Microsoft Word Visual Basic

Selects the row that contains the insertion point, or selects all rows that contain the selection. If the selection isn't in a table, an error occurs.

expression.SelectRow

expression    Required. An expression that returns a Selection object.

Example

This example collapses the selection to the starting point and then selects the column that contains the insertion point.

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