Share via


Sections Property.Sections Property

Publisher Developer Reference

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 Sections Property 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.

Visual Basic for Applications
  Dim objSections As Sections
Set objSections = ActiveDocument.Sections
objSections.Add StartPageIndex:=2

See Also