Académique Documents
Professionnel Documents
Culture Documents
egxfh() objXML As MSXML2.DOMDocument EUR_Rate As Variant USD_Rate As Variant 'Create the DomDocument Object Set objXML = CreateObject("MSXML2.DOMDocument") 'Load entire Document before moving on objXML.async = False 'Don't Validate objXML.validateOnParse = False objXML.Load ("http://www.nationalbanken.dk/dndk/valuta.nsf/valuta.xml")
EUR_Rate = objXML.DocumentElement.ChildNodes(0).ChildNodes(0).Attributes.getName dItem("rate").Text USD_Rate = objXML.DocumentElement.ChildNodes(0).ChildNodes(1).Attributes.getName dItem("rate").Text MsgBox EUR_Rate MsgBox USD_Rate End Sub