Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
 
Posts: n/a
Default Importing Data via Web Query - Can values be passed to query?

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:
http://www.someUrl.com/loadDate?country=Sheet1!B1

Is this possible?

-johng

  #2   Report Post  
Posted to microsoft.public.excel.misc
Ardus Petus
 
Posts: n/a
Default Importing Data via Web Query - Can values be passed to query?

=HYPERLINK("http://www.someUrl.com/loadDate"&"?"&Feuil1!A1&"="&Feuil1!B1)

HTH
--
AP

a écrit dans le message de news:
...
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:
http://www.someUrl.com/loadDate?country=Sheet1!B1

Is this possible?

-johng



  #3   Report Post  
Posted to microsoft.public.excel.misc
 
Posts: n/a
Default Importing Data via Web Query - Can values be passed to query?

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 -
Import External Data - New Web Query utility. I could not dynamically
construct the URL.

-johng

  #4   Report Post  
Posted to microsoft.public.excel.misc
Mitch
 
Posts: n/a
Default Importing Data via Web Query - Can values be passed to query?

Was 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

" skrev:

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 -
Import External Data - New Web Query utility. I could not dynamically
construct the URL.

-johng


  #5   Report Post  
Posted to microsoft.public.excel.misc
Ardus Petus
 
Posts: n/a
Default Importing Data via Web Query - Can values be passed to query?

Here is a quick solution with a CommandButton and some VBA code:
http://cjoint.com/?fjsociCanS

HTH
--
AP

"Mitch" a écrit dans le message de news:
...
Was 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

" skrev:

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 -
Import External Data - New Web Query utility. I could not dynamically
construct the URL.

-johng






  #6   Report Post  
Posted to microsoft.public.excel.misc
Mitch
 
Posts: n/a
Default Importing Data via Web Query - Can values be passed to query?

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:

http://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.

Regards


"Ardus Petus" skrev:

Here is a quick solution with a CommandButton and some VBA code:
http://cjoint.com/?fjsociCanS

HTH
--
AP

"Mitch" a écrit dans le message de news:
...
Was 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

" skrev:

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 -
Import External Data - New Web Query utility. I could not dynamically
construct the URL.

-johng





Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy old Data from web query while keeping previous days data DRobidoux Excel Worksheet Functions 0 March 22nd 06 01:56 PM
Importing Data Jillian Excel Worksheet Functions 9 December 23rd 05 12:45 PM
Importing Microsoft query data into excel changes linked rows Wazzy_bear Links and Linking in Excel 1 December 19th 05 09:09 AM
1-variable Data Table dependent on MS Query fails to update correctly [email protected] Excel Discussion (Misc queries) 0 March 30th 05 07:43 PM
Pulling data from 1 sheet to another Dave1155 Excel Worksheet Functions 1 January 12th 05 05:55 PM


All times are GMT +1. The time now is 07:29 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"