Applies To
DocumentProperty Object.
Description
Deletes a custom document property (you cannot delete a built-in document property).
To use this method, you should establish a reference to the Microsoft Office 95 Object Library by using the References command (Tools menu).
Example
This example deletes a custom document property. You must pass a DocumentProperty object to the procedure.
Sub DeleteCustomDocumentProperty(dp As DocumentProperty) dp.Delete End Sub
This example deletes the "Total Sales" custom document property
ActiveWorkbook.CustomDocumentProperties("Total Sales").Delete