PC Review


Reply
Thread Tools Rate Thread

Can I refresh more than 1 external (web) query data at once?

 
 
deniseandgavin@gmail.com
Guest
Posts: n/a
 
      30th Apr 2008
My sheet has a number of queries that look at the web to return tables
of share prices. I use this statement


Worksheets("Data").Range(B1).QueryTable.Refresh

for each stock.

I would like to run all the queries at once rather than looping
through each one - in an effort to speed it up.
Can it be sped up? What might the code look like?

Thanks

Gavin
 
Reply With Quote
 
 
 
 
deniseandgavin@gmail.com
Guest
Posts: n/a
 
      30th Apr 2008
On Apr 30, 12:10*pm, deniseandga...@gmail.com wrote:
> My sheet has a number of queries that look at the web to return tables
> of share prices. *I use this statement
>
> Worksheets("Data").Range(B1).QueryTable.Refresh
>
> for each stock.
>
> I would like to run all the queries at once rather than looping
> through each one - in an effort to speed it up.
> Can it be sped up? *What might the code look like?
>
> Thanks
>
> Gavin


I forgot to mention that B1 changes for each stock - say B15, B25, B35
etc
 
Reply With Quote
 
Don Guillett
Guest
Posts: n/a
 
      30th Apr 2008
Perhaps a better way to do this would be to have ONE query with a looping
macro using a variable and exporting the data to another area for use as
desired.


--
Don Guillett
Microsoft MVP Excel
SalesAid Software
(E-Mail Removed)
<(E-Mail Removed)> wrote in message
news:57292f5b-f7ae-4c8e-8ef1-(E-Mail Removed)...
> My sheet has a number of queries that look at the web to return tables
> of share prices. I use this statement
>
>
> Worksheets("Data").Range(B1).QueryTable.Refresh
>
> for each stock.
>
> I would like to run all the queries at once rather than looping
> through each one - in an effort to speed it up.
> Can it be sped up? What might the code look like?
>
> Thanks
>
> Gavin


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Check Refresh Status of External Data Query Mark Microsoft Excel Programming 0 15th Mar 2009 09:41 PM
query wait while refresh external data joost Microsoft Excel Discussion 0 6th Jun 2007 09:30 PM
external data automatic refresh through macro/query =?Utf-8?B?VGV4YXMgVG9uaWU=?= Microsoft Excel Misc 0 12th Apr 2007 07:52 PM
Prompting to allow External Query Data Refresh =?Utf-8?B?VGltIEJha2Vy?= Microsoft Excel Misc 3 8th Mar 2005 11:29 AM
External Data refresh query =?Utf-8?B?QmVTbWFydA==?= Microsoft Excel Worksheet Functions 1 20th May 2004 09:17 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:42 AM.