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

Borders Object (PowerPoint)

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

A collection of LineFormat objects that represent the borders and diagonal lines of a cell or range of cells in a table.


Each Cell object or CellRange collection has six elements in the Borders collection. You cannot add objects to the Borders collection.

Use Borders (index), where index identifies the cell border or diagonal line, to return a single Border object. The index value can be any PPBorderType constant.

|| |:-----| |ppBorderBottom| |ppBorderLeft| |ppBorderRight| |ppBorderTop| |ppBorderDiagonalDown| |ppBorderDiagonalUp|


Use the DashStyleproperty to apply a dashed line style to a Border object. This example selects the second row from 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

© 2018 Microsoft