Share via


DocumentProperty.Parent Property

Office Developer Reference

Gets the Parent object for the DocumentProperty object. Read-only.

Syntax

expression.Parent

expression   A variable that represents a DocumentProperty object.

Return Value
Object

Example

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

Visual Basic for Applications
  Sub DisplayParent(dp as DocumentProperty)
    MsgBox dp.Parent.Name
End Sub

See Also