Table of contents
TOC
Collapse the table of content
Expand the table of content

DocumentProperty.Name Property (Office)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

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

NameRequired/OptionalData TypeDescription
lcidRequiredLongRepresents the language identifier.
pbstrRetValRequiredStringRepresents 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

Concepts

DocumentProperty Object

Other resources

DocumentProperty Object Members

© 2018 Microsoft