XMLNode.LastChild Property

Word Developer Reference

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

Syntax

expression.LastChild

expression   An expression that returns an XMLNode object.

Example

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

Visual Basic for Applications
  Dim objNode As XMLNode

Set objNode = ActiveDocument.XMLNodes(2).LastChild

See Also