CustomXMLPart 对象 (Office)CustomXMLPart object (Office)

表示 CustomXMLParts 集合中的一个 CustomXMLPartRepresents a single CustomXMLPart in a CustomXMLParts collection.


以下示例将部件添加到 CustomXMLPart 对象。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

另请参阅See also

支持和反馈Support and feedback

有关于 Office VBA 或本文档的疑问或反馈?Have questions or feedback about Office VBA or this documentation? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.