I'm trying to construct a template in Excel 2003 that'll load data via
a web query. Sheet 1 will contain the parameters and Sheet 2 will
contain the data retrieved via a query. Consider the following:
Sheet 1:
A B
1 Country US
Sheet 2 Web Query:
www.someUrl.com/loadDate?country=Sheet1!B1
Is this possible?
-johng=HYPERLINK(quot;www.someUrl.com/loadDatequot;amp;quot;?quot;amp;Feuil1!A1amp;quot;=quot;amp;Feuil1!B1)
HTH
--
AP
gt; a écrit dans le message de news:
...
gt; I'm trying to construct a template in Excel 2003 that'll load data via
gt; a web query. Sheet 1 will contain the parameters and Sheet 2 will
gt; contain the data retrieved via a query. Consider the following:
gt;
gt; Sheet 1:
gt; A B
gt; 1 Country US
gt;
gt; Sheet 2 Web Query:
gt; www.someUrl.com/loadDate?country=Sheet1!B1
gt;
gt; Is this possible?
gt;
gt; -johng
gt;
Thank AP,
This enables me to build a link within a Spreadsheet; however, I'm
trying to use the dynamic link to load external data via the Data -gt;
Import External Data -gt; New Web Query utility. I could not dynamically
construct the URL.
-johngWas going to ask the exact same question as you John. Would love to know if
this is possible. Can't find the issue being discussed earlier.
/Mitch
quot; skrev:
gt; Thank AP,
gt;
gt; This enables me to build a link within a Spreadsheet; however, I'm
gt; trying to use the dynamic link to load external data via the Data -gt;
gt; Import External Data -gt; New Web Query utility. I could not dynamically
gt; construct the URL.
gt;
gt; -johng
gt;
gt;
Here is a quick solution with a CommandButton and some VBA code:
cjoint.com/?fjsociCanS
HTH
--
AP
quot;Mitchquot; gt; a écrit dans le message de news:
...
gt; Was going to ask the exact same question as you John. Would love to know
gt; if
gt; this is possible. Can't find the issue being discussed earlier.
gt;
gt; /Mitch
gt;
gt; quot; skrev:
gt;
gt;gt; Thank AP,
gt;gt;
gt;gt; This enables me to build a link within a Spreadsheet; however, I'm
gt;gt; trying to use the dynamic link to load external data via the Data -gt;
gt;gt; Import External Data -gt; New Web Query utility. I could not dynamically
gt;gt; construct the URL.
gt;gt;
gt;gt; -johng
gt;gt;
gt;gt;
Let me clarify my problem. The main data source I want to use with web query
is updated daily and the URL is also changed daily. So I can't use a static
web query and get the updated site.
Well, at least I managed to figure out how the URL is named and this info is
available in another web query I've done which doesn't change it's address.
So I'm stuck with the info on how the main source names it's URL after
updating it but I can't figure out how to make the web query for it with the
URL being dynamic, albeit existing in a cell already.
Example:
First I web query one site and get a number which is changed daily, today
its 131.
ok, so know I want to use this number (represented by the XXX) to get data
from a site with thte following URL:
www.domainname.com/website/html/web/XXX.shtml
I might add that there's several of these that I need to do otherwise I
would have done it manually.
Any help here would be greatly appreciated.
Regardsquot;Ardus Petusquot; skrev:
gt; Here is a quick solution with a CommandButton and some VBA code:
gt; cjoint.com/?fjsociCanS
gt;
gt; HTH
gt; --
gt; AP
gt;
gt; quot;Mitchquot; gt; a écrit dans le message de news:
gt; ...
gt; gt; Was going to ask the exact same question as you John. Would love to know
gt; gt; if
gt; gt; this is possible. Can't find the issue being discussed earlier.
gt; gt;
gt; gt; /Mitch
gt; gt;
gt; gt; quot; skrev:
gt; gt;
gt; gt;gt; Thank AP,
gt; gt;gt;
gt; gt;gt; This enables me to build a link within a Spreadsheet; however, I'm
gt; gt;gt; trying to use the dynamic link to load external data via the Data -gt;
gt; gt;gt; Import External Data -gt; New Web Query utility. I could not dynamically
gt; gt;gt; construct the URL.
gt; gt;gt;
gt; gt;gt; -johng
gt; gt;gt;
gt; gt;gt;
gt;
gt;
gt;
- Aug 14 Mon 2006 20:08
Importing Data via Web Query
close
全站熱搜
留言列表
發表留言