Section object (Publisher)

Represents a section of a publication or document.

Remarks

Use Sections.Item (index), where index is the index number, to return a single Section object.

Use Sections.Add (StartPageIndex), where StartPageIndex is the index number of the page, to return a new section added to a document. A "Permission denied" error is returned if the page already contains a section head.

Example

The following example sets a Section object to the first section in the Sections collection of the active document.

Dim objSection As Section 
Set objSection = ActiveDocument.Sections.Item(1)

The following example adds a Section object to the second page of the active document.

Dim objSection As Section 
Set objSection = ActiveDocument.Sections.Add(StartPageIndex:=2)

Methods

Properties

See also

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.