Rows Collection Object

See Also         Properties         Methods

Table object
Rows collection (Row object)
CellRange collection (Cell object)

A collection of Row objects that represent the rows in a table.

Using the Rows Collection

Use the Rows property to return the Rows collection. This example changes the height of all rows in the specified table to 160 points.

Dim i As Integer
With ActivePresentation.Slides(2).Shapes(4).Table
    For i = 1 To .Rows.Count
        .Rows.Height = 160
    Next i
End With

Use the Add method to add a row to a table. This example inserts a row before the second row in the referenced table.

ActivePresentation.Slides(2).Shapes(5).Table.Rows.Add (2)

Use Rows(index), where index is a number that represents the position of the row in the table, to return a single Row object. This example deletes the first row from the table in shape five on slide two.

ActivePresentation.Slides(2).Shapes(5).Table.Rows(1).Delete