Rows Object (PowerPoint)

Office 2013 and later

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

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

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.