Rows object (PowerPoint)
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
PowerPoint Object Model Reference
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.