Selection.XMLParentNode Property

Word Developer Reference

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

Syntax

expression.XMLParentNode

expression   Required. A variable that represents a Selection object.

Example

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

Visual Basic for Applications
  Dim objNode As XMLNode

Set objNode = Selection.XMLParentNode

See Also