Add Method (Sections Collection)

Applies To

Sections collection object.

Description

Adds a new section to a document.

Syntax

expression.Add(Range, Start)

expression Required. An expression that returns a Sections object.

Range Optional Variant. The range before which you want to insert the section break. If this argument is omitted, the section break is inserted at the end of the document.

Start Optional Variant. The type of section break you want to add. Can be one of the following WdSectionStart constants: wdSectionContinuous, wdSectionEvenPage, wdSectionNewColumn, wdSectionNewPage, or wdSectionOddPage. If this argument is omitted, a Next Page section break is added.

See Also

InsertBreak method.

Example

This example adds a Next Page section break before the third paragraph in the active document.

Set myRange = ActiveDocument.Paragraphs(3).Range
ActiveDocument.Sections.Add Range:=myRange
This example adds a Continuous section break at the selection.

Set myRange = Selection.Range
ActiveDocument.Sections.Add Range:=myRange, Start:=wdSectionContinuous
This example adds a Next Page section break at the end of the active document.

ActiveDocument.Sections.Add