Solved

any soltion create a connection to import XML file from website

Posted on 2016-11-23
4
58 Views
Last Modified: 2016-11-23
I have this php website link  

previously, i had a link https://treasury.un.org/operationalrates/xsql2XML.php  which was working fine importing the XML data into excel using normal data connection. i had put workbook open event with Refresh.all  and it was updating my data from the XML source link.

somehow it stopped working.  if i open the link https://treasury.un.org/operationalrates/xsql2XML.php  it downloads the XML file, and if i use the downloaded XML file then it work, however, if i put this https://treasury.un.org/operationalrates/xsql2XML.php into data connection to directly fetch data, ideally it should work but it does not.

any help is appreciated.

i don't care whether it is a normal solution or VBA, as long as i can get my data updated from the source https://treasury.un.org/operationalrates/xsql2XML.php

thanks.
0
Comment
Question by:excelismagic
4 Comments
 
LVL 110

Expert Comment

by:Ray Paseur
ID: 41899012
What is the PHP part of this question?  Are you looking for a PHP script that will read the XML document?
0
 
LVL 3

Author Comment

by:excelismagic
ID: 41899021
Ray,

i am sorry, the topic was suggestion by EE itself. i need solution in Excel.  apparently the website link has a extension of php
i am not looking for PHP script, i need help with Excel or VBA in Excel to be able to export the data from given link into Excel worksheet.

thanks.
0
 
LVL 50

Accepted Solution

by:
Rgonzo1971 earned 500 total points
ID: 41899141
HI,

pls try
    ActiveWorkbook.XmlImport URL:= _
        "https://treasury.un.org/operationalrates/xsql2XML.php", ImportMap:=Nothing, _
        Overwrite:=True, Destination:=Range("$A$1")

Open in new window

or Data / From Other Sources / From Xml Data Import
in File Name the website

Regards
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
How to get Spreadsheet Compare 2016 working with the 64 bit version of Office 2016
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question