Share via


Range.XMLParentNode Property

Word Developer Reference

Returns an XMLNode object that represents the parent XML node of a range. Read-only.

Syntax

expression.XMLParentNode

expression   An expression that returns a Range object.

Example

The following example returns the parent node of the specified range.

Visual Basic for Applications
  Dim objRange As Range
Dim objNode As XMLNode
 
Set objRange = ActiveDocument.Range(1, 200)
Set objNode = objRange.XMLParentNode

See Also