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
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.