Rows Property

Returns a Rows collection that represents all the table rows in a range, selection, or table. Read-only.

For information about returning a single member of a collection, see Returning an Object from a Collection .

Example

This example deletes the second row from the first table in the active document.

ActiveDocument.Tables(1).Rows(2).Delete

This example places a border around the cells in the row that contains the insertion point.

Selection.Collapse Direction:=wdCollapseStart
If Selection.Information(wdWithInTable) = True Then
    Selection.Rows(1).Borders.OutsideLineStyle =  wdLineStyleSingle
Else
    MsgBox "The insertion point is not in a table."
End If

Applies to | Range Object | Selection Object | Table Object

See Also | AllowBreakAcrossPages Property | Columns Property | Error Accessing a Table Row or Column | HeightRule Property | Row Property | RowIndex Property | Tables Property