InsideLineWidth Property

Applies To

Borders collection object.

Description

Returns or sets the line width of the inside border of an object. Returns wdUndefined if the object has inside borders with more than one line width; otherwise, returns False or a WdLineWidth constant. Can be set to True, False, or one of the following WdLineWidth constants: wdLineWidth025pt, wdLineWidth050pt, wdLineWidth075pt, wdLineWidth100pt, wdLineWidth150pt, wdLineWidth225pt, wdLineWidth300pt, wdLineWidth450pt, or wdLineWidth600pt. Read/write Long.

See Also

Inside property, InsideColorIndex property, InsideLineStyle property, LineStyle property, LineWidth property, OutsideLineStyle property, OutsideLineWidth property.

Example

This example adds borders between rows and between columns in the first table in the active document.

If ActiveDocument.Tables.Count >= 1 Then
    Set myTable = ActiveDocument.Tables(1)
    myTable.Borders.InsideLineStyle = wdLineStyleDot
    myTable.Borders.InsideLineWidth = wdLineWidth050pt
End If
This example adds dotted 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)
myRange.Borders.InsideLineStyle = wdLineStyleDot
myRange.Borders.InsideLineWidth = wdLineWidth075pt