Just add the following property
XmlDoc.SetProperty "SelectionLanguage", "XPath"
My test xml is as follows
<root>
<child1>
<child2>
<child3>test1</child3>
</child2>
<child2>
<child3>test2</child3>
</child2>
<child2>
<child3>test3</child3>
</child2>
<child2>
<child3>test4</child3>
</child2>
</child1>
</root>
My test code is as follows
strXMLReadFile = "C:\Test.xml"
Set xmlDoc = CreateObject("Microsoft.XMLDOM")
xmlDoc.SetProperty "SelectionLanguage", "XPath"
xmlDoc.Async = False
xmlDoc.Load(strXMLReadFile)
Set nodeXML = xmlDoc.SelectNodes("//root/child1/child2[last()]")
msgbox nodeXML(0).Text
I get test4