Skip to content

Latest commit

 

History

History
44 lines (27 loc) · 1.2 KB

Office.CustomXMLParts.md

File metadata and controls

44 lines (27 loc) · 1.2 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
CustomXMLParts object (Office)
vbaof11.chm300000
vbaof11.chm300000
Office.CustomXMLParts
98c1c58e-a08d-6304-8626-1e6705917da3
01/07/2019
medium

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

[!includeSupport and feedback]