Solved

any soltion create a connection to import XML file from website

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

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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Introduction While answering a recent question (http:/Q_27311462.html), I created an alternative function to the Excel Concatenate() function that you might find useful.  I tested several solutions and share the results in this article as well as t…
This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.

744 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

9 Experts available now in Live!

Get 1:1 Help Now