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

  • Thread starter Thread starter deniseandgavin
  • Start date Start date
D

deniseandgavin

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
 
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
 
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top