View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.programming
Roger[_10_] Roger[_10_] is offline
external usenet poster
 
Posts: 4
Default Sequential Sub Procedures

"Tom Ogilvy" wrote in message
...
Each query definition should have a backgroundquery parameter. This is
obviously set to True. You need to set it to false and your macro will

wait
for the query to complete.

You could change it with this macro

for each sh in ActiveWorkbook.Worksheets
for each qt in sh.QueryTables
qt.BackgroundQuery = False
next
Next


Many thanks for the info Gents - got it running perfectly now.

Cheers,

Roger