Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Pausing while retrieving data

hi, everyone!


I have a query retrieving data from a remote database. The proces
takes some time. I have a code that defines the query criteria and the
manipulating the retrieved data.

What I'm not sure is if the execution of all commands is suspende
BEFORE all data are retrieved. It seems like some actions are take
while Excel is still loading the data.

Is there any way to pause before proceeding or in any way make sure n
action is taken before query finished refreshing?


Thanks!

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 132
Default Pausing while retrieving data

Hi Alex;

Unless you use code to tell it differently Excel executes
code step by step or non-Asynchronously. Unless you use
the Do Events call it is very unlikely the next command is
happening.

Thanks,

Greg


-----Original Message-----
hi, everyone!


I have a query retrieving data from a remote database.

The process
takes some time. I have a code that defines the query

criteria and then
manipulating the retrieved data.

What I'm not sure is if the execution of all commands is

suspended
BEFORE all data are retrieved. It seems like some actions

are taken
while Excel is still loading the data.

Is there any way to pause before proceeding or in any way

make sure no
action is taken before query finished refreshing?


Thanks!!


---
Message posted from http://www.ExcelForum.com/

.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Pausing while retrieving data

Thanks for your reply!

However, my colleague is trying to solve exactly the same problem an
here's what he found:

He's got 2 queries in the same spreadsheet plus VBA code working wit
the data from the queries. It is very clear that while the querie
haven't finished retrieving data, VBA is not waiting but executing al
the commands! So the code finishes but the data is still bein
retrieved, which defeats the purpose of the code.

There's an option to "disable background refresh" but this doesn't hel
either.

Isn't there some sort of "Pause before blah-blah" or "Wait for x
time" command? I couldn't find anything of the sort but maybe you know


Thanks

--
Message posted from http://www.ExcelForum.com

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
retrieving current data dave303159 Excel Worksheet Functions 1 March 18th 10 07:40 PM
Retrieving Data in excel Siddarth Jain Excel Worksheet Functions 1 November 13th 07 10:24 AM
retrieving data Jess Excel Worksheet Functions 1 February 13th 07 04:54 PM
Retrieving data from the web - help ! glynny Excel Worksheet Functions 0 February 20th 06 02:04 AM
Retrieving external data Ryan Excel Programming 0 February 20th 04 07:24 PM


All times are GMT +1. The time now is 06:30 PM.

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"