11-30-2015, 10:37 AM
Hi All
I tried the above mentioned logic but i'm getting "object Required: 'node'" error. Can anyone please help me on this ?
My code:
I tried the above mentioned logic but i'm getting "object Required: 'node'" error. Can anyone please help me on this ?
My code:
Code:
Set xmlDoc = CreateObject("Microsoft.XMLDOM")
xmlDoc.Async = False
XMLDataFile = "C:\Users\neelakantan.lavanya\Desktop\115028_ASSET.xml"
xmlDoc.Load (XMLDataFile)
Datatable.ImportSheet "C:\Users\neelakantan.lavanya\Desktop\Orange_data.xlsx", "XML", 1
' update the title of the first book
Set node = xmlDoc.SelectSingleNode("/ListOfOrder/Order/Status") '----- > order of the nodes in ur xml file
node.Text = "Close"
' save changes
xmlDoc.Save(XMLDataFile)