DocumentProperty.Name property (Office)
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
See also
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.