Table of contents
Collapse the table of content
Expand the table of content

CustomXMLParts.PartAfterAdd Event (Office)

office 365 dev account|Last Updated: 6/12/2017
1 Contributor

Occurs just after a CustomXMLPart object is added to the CustomXMLParts collection.


expression. PartAfterAdd( NewPart, )

An expression that returns a CustomXMLParts object.


NameRequired/OptionalData TypeDescription
NewPartRequiredCustomXMLPartThe part that was added.


The following example displays the XML contents of a part after it has been added to a CustomXMLParts collection.

Sub CustomXMLParts_PartAfterAdd(ByVal objPart As CustomXMLPart) 
Dim strPartXML As String 
strPartXML = objPart.XML 
   MsgBox ("The part's contents are: " & vbCrLf & strPartXML) 
End Sub

See also


CustomXMLParts Object

Other resources

CustomXMLParts Object Members

© 2018 Microsoft