This documentation is archived and is not being maintained.

Table.Borders Property

Office 2007
Returns a Borders collection that represents all the borders for the specified object.

Syntax

expression.Borders

expression   Required. A variable that represents a Table 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 first table in the active document.

Visual Basic for Applications
Set myTable = ActiveDocument.Tables(1)
With myTable.Borders
    .InsideLineStyle = wdLineStyleSingle
    .OutsideLineStyle = wdLineStyleDouble
End With



Show: