Table of contents
TOC
Collapse the table of content
Expand the table of content

Section Object (Publisher)

office 365 dev account|Last Updated: 8/24/2017
|
3 Contributors

Represents a Section of a publication or document.

Example

Use Sections.Item(index) where index is the index number, to return a single Section object. 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)

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 will be returned if the page already contains a section head. 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

Name
Delete

Properties

Name
Application
ContinueNumbersFromPreviousSection
PageNumberFormat
PageNumberStart
Parent
ShowHeaderFooterOnFirstPage
StartPageIndex
© 2017 Microsoft