21.3. Working with Sections, Page Setup, Windows, and Views

Each Word document contains at least one section by default and can contain multiple sections as needed for its contents and layout. The section of the document controls the page layout so that different sections of a document can use different page layouts if necessary.

21.3.1. Adding a Section to a Document

You can add a section to a document either by using the Add method with the Sections collection or by using the InsertBreak method with a Range or Selection object.

The Add method takes the following syntax:

expression.Add Range, Start

Here, expression is a required expression that returns a Sections collection. Range is an optional Variant argument specifying the range at the ...

Get Mastering VBA for Microsoft Office 2007, 2nd Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.