No, you will need to add and remove manually;
with NodeColl
.add .Item("Node 2"), "New Key", , "Node 2"
.remove "Node 2"
end with
Or use Dictionaryone that allows this by adding a link to the Microsoft Scripting Runtime or;
dim NodeColl as object: Set NodeColl = createobject("Scripting.dictionary")
NodeColl.add "key for Node 1", "Node 1"
NodeColl.add "key for Node 2", "Node 2"
NodeColl.add "key for Node 3", "Node 3"
'//direct rename allowed;
NodeColl.Key("key for Node 2") = "New Key here"
source
share