Row object (PowerPoint)

Represents a row in a table. The Row object is a member of the Rows collection. The Rows collection includes all the rows in the specified table.

Example

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 of the active presentation.

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

Use the Selectmethod to select a row in a table. This example selects row one of the specified table.

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

Use the Cellsproperty to modify the individual cells in a Row object. This example selects the second row in the table and applies a dashed line style to the bottom border.

ActiveWindow.Selection.ShapeRange.Table.Rows(2) _
    .Cells.Borders(ppBorderBottom).DashStyle = msoLineDash

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.