Parent Property

Microsoft Excel Visual Basic

Parent Property

       

Returns the parent object for the specified object.

expression.Parent

expression   Required. An expression that returns one of the objects in the Applies To list.

Example

This example displays the name of the chart that contains myAxis.

Set myAxis = Charts(1).Axes(xlValue)
MsgBox myAxis.Parent.Name