Skip to main content

DocumentProperty.Delete method

Table of contents
  1. Syntax
  2. Remarks
  3. Example

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

Leave a comment

Your email address will not be published. Required fields are marked *

Format your code: <pre><code class="language-vba">place your code here</code></pre>