Notitie
Voor toegang tot deze pagina is autorisatie vereist. U kunt proberen u aan te melden of de directory te wijzigen.
Voor toegang tot deze pagina is autorisatie vereist. U kunt proberen de mappen te wijzigen.
Returns a border in a range or selection.
Syntax
expression.Item (Index)
expression Required. A variable that represents a 'Borders' collection.
Parameters
| Name | Required/Optional | Data type | Description |
|---|---|---|---|
| Index | Required | WdBorderType | The border to be returned. |
Return value
Border
Example
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
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.