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