Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Returns a Borders collection that represents the borders and diagonal lines for the specified Cell object or CellRange collection. Read-only.
Syntax
expression.Borders
expression A variable that represents a Cell object.
Return value
Borders
Example
This example sets the thickness of the left border for the first cell in the second row of the selected table to three points.
ActiveWindow.Selection.ShapeRange.Table.Rows(2) _
.Cells(1).Borders.Item(ppBorderLeft).Weight = 3
See also
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.