Syntax
DocumentPropertyType(Name$)
Remarks
Returns a numeric value that indicates the type of the Name$ property. If Name$ is not a valid property, an error occurs. Use the DocumentPropertyExists() function to verify that the Name$ property exists.
For a list of the built-in properties available in Word, see DocumentPropertyName$(). In Word version 6.0, DocumentPropertyType() is unavailable and generates an error.
The DocumentPropertyType() function returns the following values.
Value | Explanation |
0 | The property is a string. |
1 | The property is a number. |
2 | The property is a date. |
3 | The property is a Yes or No value. |
See Also
DocumentPropertyExists(), DocumentPropertyName$(), IsCustomDocumentProperty(), IsDocumentPropertyReadOnly()