SelectRow Method

Applies To

Selection object.

Description

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.

Syntax

expression.SelectRow

expression   An expression that returns a Selection object.

See Also

Select method, SelectColumn method.

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