Borders.Item method (Word)

Returns a border in a range or selection.


expression.Item (Index)

expression Required. A variable that represents a 'Borders' collection.


Name Required/Optional Data type Description
Index Required WdBorderType The border to be returned.

Return value



This example inserts a double border above the first paragraph in the active document.

Sub BorderItem() 
 ActiveDocument.Paragraphs(1).Borders.Item(wdBorderTop) _ 
 .LineStyle = wdLineStyleDouble 
End Sub

See also

Borders Collection Object

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.