CustomXMLPart.NodeAfterReplace Event (Office)
Occurs just after a node is replaced in a CustomXMLPart object.
expression An expression that returns a CustomXMLPart object.
|OldNode||Required||CustomXMLNode||Corresponds to the node which was just removed from the CustomXMLPart object. Note that this node may have children, if a subtree was just added to the document. Also, this node will be a "disconnected" node in that you can query down from the node, but cannot go up - it appears to exist alone.|
|NewNode||Required||CustomXMLNode||Corresponds to the node just added to the CustomXMLPart object.|
|InUndoRedo||Required||Boolean||Returns TRUE if the node was added as part of an Undo/Redo action by the user.|
The following example displays a message telling the user the results of replacing the node.
Sub CustomXMLParts_NodeAfterReplace(oldNode As CustomXMLNode, newNode As CustomXMLNode, boolInUndoRedo As Boolean) MsgBox ("The part's node " & oldNode.BaseName & " was replaced with the node " & newNode.BaseName) End Sub