Partager via


Selection.SelectRow Method (Word)

Selects the row that contains the insertion point, or selects all rows that contain the selection.

Syntax

expression .SelectRow

expression Required. A variable that represents a Selection object.

Remarks

If the selection isn't in a table, an error occurs.

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

See Also

Concepts

Selection Object Members

Selection Object