Table of contents
TOC
Collapse the table of content
Expand the table of content

Rows Object (PowerPoint)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

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

Example

Use the Rowsproperty 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 Addmethod 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

Methods

Name
Add
Item

Properties

Name
Application
Count
Parent

See also

Other resources

PowerPoint Object Model Reference

© 2017 Microsoft