Notes
L’accès à cette page nécessite une autorisation. Vous pouvez essayer de vous connecter ou de modifier des répertoires.
L’accès à cette page nécessite une autorisation. Vous pouvez essayer de modifier des répertoires.
Returns a Borders collection that represents all the borders for the specified object.
Syntax
expression .Borders
expression A variable that represents a Cells object.
Remarks
For information about returning a single member of a collection, see Returning an Object from a Collection.
Example
This example applies inside and outside borders to the cells in the first row of the first table in the active document.
Dim objTable As Table
Set objTable = ActiveDocument.Tables(1)
With objTable.Rows(1).Cells.Borders
.InsideLineStyle = wdLineStyleSingle
.OutsideLineStyle = wdLineStyleDouble
End With