DefaultBorderColorIndex Property
Applies To
Options object.
Description
Returns or sets the default line color for borders. Read/write Long.
Can be one of the following WdColorIndex constants:
Note If the Enable property of the Borders object is set to True, the default line width, line style, and line color for borders are used.
See Also
ColorIndex property, DefaultBorderLineStyle property, DefaultBorderLineWidth property.
Example
This example changes the default line color and style for borders and then applies a border around the first paragraph in the active document.
With Options
.DefaultBorderColorIndex = wdRed
.DefaultBorderLineStyle = wdLineStyleDouble
End With
ActiveDocument.Paragraphs(1).Borders.Enable = True