Skip to main content

DocumentProperties.Parent property

Table of contents
  1. Syntax
  2. Return value
  3. Example

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

Syntax

expression.Parent

expression A variable that represents a DocumentProperties 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.

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

Leave a comment

Your email address will not be published. Required fields are marked *

Format your code: <pre><code class="language-vba">place your code here</code></pre>