View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.programming
RB Smissaert RB Smissaert is offline
external usenet poster
 
Posts: 2,452
Default Multiple ADO queries at the same time

You are talking about multi-threading then and I don't think that is
possible with VBA alone.
If you have VB6 then maybe you could make 15 .exe files and start them with
Shell as that
doesn't wait till the Shelled process is finished.

RBS


"WhytheQ" wrote in message
...
Has anybody ever written code using the ADO which fires several SQL
strings at SQL server and then copies and pastes each result into a
different worksheet?

I have to execute 15 queries - each takes 2 minutes. So if I can set
them running at the same time things should only take 2 minutes
whereas if I do one after another I'm looking at tying up Excel for 30
minutes !

Or does anybody understand my problem and know of a possible
workaround.

Any help much appreciated,
Jason.