Range.XPath (Excel)

Returns an XPath object that represents the XPath of the element mapped to the specified Range object. The context of the range determines whether the action succeeds or returns an empty object.

The XPath property is valid when the range it contains meets the following conditions:


Dim xphXPath As XPath
Set xphXPath = ActiveCell.XPath