Parent Property

Microsoft Office Visual Basic

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

Example

This example displays the name of the parent object for a document property. You must pass a valid DocumentProperty object to the procedure.

Sub DisplayParent(dp as DocumentProperty)
    MsgBox dp.Parent.Name
End Sub