Borders.InsideLineWidth Property

Word Developer Reference

Returns or sets the line width of the inside border of an object. .

Syntax

expression.InsideLineWidth

expression   Required. A variable that represents a Borders collection.

Remarks

This property 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.

Example

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

Visual Basic for Applications
  Dim tableTemp As Table

If ActiveDocument.Tables.Count >= 1 Then Set tableTemp = ActiveDocument.Tables(1) tableTemp.Borders.InsideLineStyle = wdLineStyleDot tableTemp.Borders.InsideLineWidth = wdLineWidth050pt End If

This example adds dotted borders between the first four paragraphs of the active document.

Visual Basic for Applications
  Dim docActive As Document
Dim rngTemp As Range

Set docActive = ActiveDocument Set rngTemp=docActive.Range( _ Start:=docActive.Paragraphs(1).Range.Start, _ End:=docActive.Paragraphs(4).Range.End)

rngTemp.Borders.InsideLineStyle = wdLineStyleDot rngTemp.Borders.InsideLineWidth = wdLineWidth075pt

See Also