CustomXMLPart Object (Office)

Represents a single CustomXMLPart in a CustomXMLParts collection.

The following example adds a part to a CustomXMLPart object.

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