Selection.SelectRow method (Word)
Selects the row that contains the insertion point, or selects all rows that contain the selection.
expression Required. A variable that represents a Selection object.
If the selection isn't in a table, an error occurs.
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
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.