CustomXMLPart.Delete Method
Office Developer Reference |
Deletes the current CustomXMLPart from the data store (IXMLDataStore interface).
Note |
---|
References to DTDs from custom XML parts are not supported. DTD references in custom XML parts will not resolve, and custom XML parts containing DTD references generate an exception when an attempt is made to save the file's content to a flat XML file. |
Syntax
expression.Delete
expression An expression that returns a CustomXMLPart object.
Remarks
If you attempt to delete the part containing the core properties, the operation is not performed and an error message is displayed.
Example
The following example adds a custom XML part, select a node with a criteria, and delete the part and node.
Visual Basic for Applications |
---|
|
See Also