Get data from web (XML) does not provide the data

Saab95

New Member
Joined
Mar 26, 2021
Messages
40
Office Version
  1. 365
Platform
  1. Windows
Hi there,

I have done an import data from web of the following xml (https://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xml?)
However after import I get only this
Screenshot 2022-03-21 161315.jpg


and not all the data.

Any idea ?

Thanks in advance
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Hmmm, try the macro below to see if it imports:

VBA Code:
Option Explicit

Sub forImportXMLdataFromWebsite()
    ActiveWorkbook.XmlImport URL:= _
        "https://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xml?", ImportMap:= _
        Nothing, Overwrite:=True, Destination:=Range("$A$1")
End Sub
 

Attachments

  • forImportXML.jpg
    forImportXML.jpg
    198 KB · Views: 8
Upvote 0
Solution
Hmmm, try the macro below to see if it imports:

VBA Code:
Option Explicit

Sub forImportXMLdataFromWebsite()
    ActiveWorkbook.XmlImport URL:= _
        "https://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xml?", ImportMap:= _
        Nothing, Overwrite:=True, Destination:=Range("$A$1")
End Sub
Thanks it worked. Weird that it doesn't with the Excel build-in import data function.
 
Upvote 0
I used the macro recorder to create it.

Basically I went to Data - From Web - pasted in the web address, clicked Go - Next - Import.
It warned me that this XML does not refer to a schema, click OK.
Pick cell A1 and it dropped right in.
 
Upvote 0

Forum statistics

Threads
1,215,036
Messages
6,122,794
Members
449,095
Latest member
m_smith_solihull

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top