Rows.Borders property (Word)
Returns a Borders collection that represents all the borders for the specified object.
expression Required. A variable that represents a Rows object.
For information about returning a single member of a collection, see Returning an object from a collection.
This example applies inside and outside borders to the rows in the first table in the active document.
Set myTable = ActiveDocument.Tables(1) With myTable.Rows.Borders .InsideLineStyle = wdLineStyleSingle .OutsideLineStyle = wdLineStyleDouble End With
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.