Share via


CustomXMLParts.PartAfterLoad Event

Office Developer Reference

Occurs just after a CustomXMLPart object is loaded.

Aa433593.vs_note(en-us,office.12).gif  Note
References to DTDs from custom XML parts are not supported. DTD references in custom XML parts will not resolve, and custom XML parts containing DTD references generate an exception when an attempt is made to save the file's content to a flat XML file.

Syntax

expression.PartAfterLoad(Part, )

expression   An expression that returns a CustomXMLParts object.

Parameters

Name Required/Optional Data Type Description
Part Required CustomXMLPart The part that was loaded.

Example
The following example adds XML to a part after it is loaded.

Visual Basic for Applications
  Sub CustomXMLParts_PartAfterLoad(ByVal objPart As CustomXMLPart)
   objPart.XML ("<root xmlns='http://www.w3c.org/XMLSchema'>text</root>")
End Sub

See Also