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

Row Object (PowerPoint)

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

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

Concepts

PowerPoint Object Model Reference

© 2017 Microsoft