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

SectionProperties.AddBeforeSlide Method (PowerPoint)

office 365 dev account|Last Updated: 6/12/2017
1 Contributor

Adds a section immediately before the specified slide index, and returns the index of the new section.


expression. AddBeforeSlide( SlideIndex, sectionName )

expression A variable that represents a SectionProperties object.


NameRequired/OptionalData TypeDescription
SlideIndexRequiredIntegerThe index of the slide before which to add the section.
sectionNameRequiredStringThe name of the new section.

Return Value



The indices of sections after the newly inserted section are automatically incremented by one.

If a section break exists immediately before the specified slide index, the new section is placed after the section break, with the result that the preceding section is now empty, and the specified slide index is now the first slide of the new section.

If the presentation does not contain any sections and you call this method, passing a SlideIndex value greater than 1, a new section is created before the first slide and given the default section name.

See also


SectionProperties Object

© 2018 Microsoft