Skip to main content

DocumentProperty.Name property

Gets or sets the name of a document property. Read/write.

Syntax

expression.Name(lcid, pbstrRetVal)

expression A variable that represents a DocumentProperty object.

Parameters

Name Required/Optional Data type Description
lcid Required Long Represents the language identifier.
pbstrRetVal Required String Represents the return value for the property.

Return value

String

Remarks

A DocumentProperty object represents a custom or built-in document property of a container document.

Example

This example displays the name, type, and value of a document property. You must pass a valid DocumentProperty object to the procedure.

Sub DisplayPropertyInfo(dp As DocumentProperty)
    MsgBox "value = " & dp.Value & Chr(13) & _
        "type = " & dp.Type & Chr(13) & _
        "name = " & dp.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>