Skip to content

Latest commit

 

History

History
51 lines (33 loc) · 1.05 KB

Word.Borders.ApplyPageBordersToAllSections.md

File metadata and controls

51 lines (33 loc) · 1.05 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
Borders.ApplyPageBordersToAllSections method (Word)
vbawd10.chm154929104
vbawd10.chm154929104
Word.Borders.ApplyPageBordersToAllSections
03905cb9-89f6-9bfa-65a1-dd23880e9c23
06/08/2017
medium

Borders.ApplyPageBordersToAllSections method (Word)

Applies the specified page-border formatting to all sections in a document.

Syntax

expression. ApplyPageBordersToAllSections

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

Example

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

See also

Borders Collection Object

[!includeSupport and feedback]