XMLNode.LastChild property (Word)

Returns an XMLNode object that represents the last child node of an XML element.


expression. LastChild

expression An expression that returns an 'XMLNode' object.


The following example accesses the last child of the second element in the active document.

Dim objNode As XMLNode 
Set objNode = ActiveDocument.XMLNodes(2).LastChild

See also

XMLNode Object

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.