Muokkaa

Jaa


CustomXMLParts.PartAfterAdd event (Office)

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

Syntax

expression.PartAfterAdd(NewPart)

expression An expression that returns a CustomXMLParts object.

Parameters

Name Required/Optional Data type Description
NewPart Required CustomXMLPart The part that was added.

Example

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

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.