Border.ArtStyle Property

Word Developer Reference

Returns or sets the graphical page-border design for a document. Read/write WdPageBorderArt.

Syntax

expression.ArtStyle

expression   Required. A variable that represents a Border object.

Example

This example adds a border of black dots around each page in first section in the selection.

Visual Basic for Applications
  Dim borderLoop As Border

For Each borderLoop In Selection.Sections(1).Borders With borderLoop .ArtStyle = wdArtBasicBlackDots .ArtWidth = 6 End With Next borderLoop

This example adds a picture border around each page in section one in the active document.

Visual Basic for Applications
  Dim borderLoop As Border

With ActiveDocument.Sections(1) .Borders.AlwaysInFront = True For Each borderLoop In .Borders With borderLoop .ArtStyle = wdArtPeople .ArtWidth = 15 End With Next borderLoop End With

See Also