Parent Property
Applies To
CodeModule object, CodePanes collection, LinkedWindows collection, Properties collection, References collection, VBComponents collection, VBE object, VBProjects collection, Windows collection.
Description
Returns the object or collection that contains another object or collection. Read-only.
Remarks
Most objects have either a Parent property or a Collection property that points to the object's parent object in this object model. The Collection property is used if the parent object is a collection.
Use the Parent property to access the properties, methods, and controls of an object's parent object.
See Also
Collection property.
Example
The following example uses the Parent property to return the name of an object's parent in the object hierarchy.
Debug.Print Application.VBE.ActiveVBProject.VBComponents.Parent.Name