title | keywords | f1_keywords | api_name | ms.assetid | ms.date | ms.localizationpriority | ||
---|---|---|---|---|---|---|---|---|
Borders.ApplyPageBordersToAllSections method (Word) |
vbawd10.chm154929104 |
|
|
03905cb9-89f6-9bfa-65a1-dd23880e9c23 |
06/08/2017 |
medium |
Applies the specified page-border formatting to all sections in a document.
expression. ApplyPageBordersToAllSections
expression Required. A variable that represents a 'Borders' collection.
This example adds a single-line page border to all sections in the active document.
Dim borderLoop As Border
With ActiveDocument.Sections(1)
For Each borderLoop In .Borders
With borderLoop
.LineStyle = wdLineStyleSingle
.LineWidth = wdLineWidth050pt
End With
Next borderLoop
.Borders.ApplyPageBordersToAllSections
End With
[!includeSupport and feedback]