Sections Property

Microsoft Publisher Visual Basic

Sections Property

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

expression.Sections

expression    Required. An expression that returns a Document object.

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