次の方法で共有


XMLNode.OwnerDocument Property

Word Developer Reference

Returns a Document object that represents the parent document of the specified XML element.

Syntax

expression.OwnerDocument

expression   An expression that returns an XMLNode object.

Example

The following example accesses the parent document of the first XML element in the active selection.

Visual Basic for Applications
  Dim objDoc As Document
    
Set objDoc = Selection.XMLNodes(1).OwnerDocument

See Also