Document.Sections property (Publisher)

Returns a Sections object representing a collection of Section objects in the specified document. Read-only Sections.

Syntax

expression.Sections

expression A variable that represents a Document object.

Return value

Sections

Example

This example sets an object variable to the Sections object of the active document and adds a new section starting at the second page of the publication. This example assumes that there are at least two pages in the publication.

Dim objSections As Sections 
Set objSections = ActiveDocument.Sections 
objSections.Add StartPageIndex:=2 

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.