Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Latest commit

 

History

History
66 lines (38 loc) · 1.65 KB

section-object-publisher.md

File metadata and controls

66 lines (38 loc) · 1.65 KB
title keywords f1_keywords ms.prod api_name ms.assetid ms.date
Section Object (Publisher)
vbapb10.chm7471103
vbapb10.chm7471103
publisher
Publisher.Section
7e92a8de-ed66-564b-2657-cef0fc2392b8
06/08/2017

Section Object (Publisher)

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