XMLNode.PreviousSibling property (Word)

Returns an XMLNode object that represents the previous element in the document that is at the same level as the specified element.


expression. PreviousSibling

expression An expression that returns an 'XMLNode' object.


If the specified element is the first element in the XMLNodes collection, this property returns Nothing.


The following example returns the previous sibling element to the third element in the active document.

Dim objNode As XMLNode 
Set objNode = ActiveDocument.XMLNodes(3).PreviousSibling

See also

XMLNode Object

Support and feedback
