Syntax

expression.Delete

expression Required. A variable that represents a 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".

Visual Basic for Applications
ActiveDocument.CustomDocumentProperties("CustomNumber").Delete

See also: