Document.Sections Property
Word Developer Reference |
Returns a Section collection that represents the sections in the specified document. Read-only.
Syntax
expression.Sections
expression A variable that represents a Document object.
Remarks
For information about returning a single member of a collection, see Returning an Object from a Collection.
Example
This example sets the page orientation for all the sections in the active document.
Visual Basic for Applications |
---|
|
This example creates a new document then adds some text to the document. It then creates a new section in the document and inserts text into the new section.
Visual Basic for Applications |
---|
|
See Also