Parent Property

Applies To

PageSetup object, Section object, Sections collection object.

Description

Returns the parent object for the specified object. Read-only.

Example

This example adds a new section to the front of Binder1.obd and sets the name of the section.

Set myBinder = GetObject("C:\Binder1.obd", "OfficeBinder.Binder")
Set newSection = myBinder.Sections.Add(Type:="Word.Document", _
    Before:=1)
newSection.Name = "Intro to " & newSection.Parent.Name