DocumentProperty Object

Office Developer Reference

Represents a custom or built-in document property of a container document. The DocumentProperty object is a member of the DocumentProperties collection.

Remarks

Use BuiltinDocumentProperties(index), where index is the name or index number of the built-in document property, to return a single DocumentProperty object that represents a specific built-in document property. Use CustomDocumentProperties(index), where index is the name or index number of the custom document property, to return a DocumentProperty object that represents a specific custom document property. The following list contains the names of all the available built-in document properties:

Title Number of Words
Subject Number of Characters
Author Security
Keywords Category
Comments Format
Comments Manager
Last Author Company
Revision Number Number of Bytes
Application Name Number of Lines
Last Print Date Number of Paragraphs
Creation Date Number of Slides
Last Save Time Number of Notes
Total Editing Time Number of Hidden Slides
Number of Pages Number of Multimedia Clips

Container applications don't necessarily define a value for every built-in document property. If a given application doesn't define a value for one of the built-in document properties, returning the Value property for that document property causes an error.

Aa432102.vs_note(en-us,office.12).gif  Note
Properties of type msoPropertyTypeString are limited in length to 255 characters.

See Also