Parent 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