Поделиться через


CustomXMLParts.PartAfterAdd Event (Office)

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

Syntax

expression .PartAfterAdd(NewPart, )

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

Concepts

CustomXMLParts Object

CustomXMLParts Object Members