Muokkaa

Jaa


CustomXMLParts object (Office)

Represents a collection of CustomXMLPart objects.

Remarks

There are three default parts that are always created with a document. These are cover pages, doc properties, and app properties. The last two were in previous versions of Microsoft Word but are now provided in XML form in the CustomXMLParts object collection.

Example

The following example adds a node to a CustomXMLPart object that is part of the CustomXMLParts object collection.

Sub AddPartToCollection() 
    Dim myPart As CustomXMLPart 
 
    Set myPart = ActiveDocument.CustomXMLParts.Add("<author>Mark Twain</author>") 
     
End Sub

See also

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.