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

DocumentProperty.Delete Method (Office)

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

Removes a custom document property.

Syntax

expression. Delete

expression Required. A variable that represents a DocumentProperty object.

Remarks

You cannot delete a built-in document property.

Example

This example deletes a custom document property. For this example to run properly, you must have a custom DocumentProperty object named "CustomNumber".

ActiveDocument.CustomDocumentProperties("CustomNumber").Delete

See also

Concepts

DocumentProperty Object

Other resources

DocumentProperty Object Members

© 2018 Microsoft