XMLParentNode Property

Microsoft Word Visual Basic

XMLParentNode Property

Returns an XMLNode object that represents the parent node of a selection or range.

expression.XMLParentNode()

expression    Required. An expression that returns one of the objects in the Applies To list.

Example

The following example returns the parent node of the selection in the active document.

    Dim objNode As XMLNode

Set objNode = Selection.XMLParentNode