Borders.InsideColor property (Word)

Returns or sets the 24-bit color of the inside borders. Read/write.

Syntax

expression. InsideColor

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

Remarks

This property can be any valid WdColor constant or a value returned by Visual Basic's RGB function. If the InsideLineStyle property is set to either wdLineStyleNone or False, setting this property has no effect.

Example

This example adds dark red borders between the first four paragraphs in the active document.

Set myDoc = ActiveDocument 
Set myRange = myDoc.Range(Start:=myDoc.Paragraphs(1).Range.Start, _ 
 End:=myDoc.Paragraphs(4).Range.End) 
With myRange.Borders 
 .InsideLineStyle = wdLineStyleSingle 
 .InsideLineWidth = wdLineWidth150pt 
 .InsideColor = wdDarkRed 
End With

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.