Solved

any soltion create a connection to import XML file from website

Posted on 2016-11-23
4
38 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 108

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 49

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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

920 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now