Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Simulating a synchronous process

Hello,

In my VBA macro, I'm running an external application
(Clear Access, in this case) to get the data I need.
Unfortunately, a Clear Access query runs asynchronously,
so that the macro continues to run.

However, I want Excel to wait for the results of the query
to come back before continuing on. (For example, what if
there are no records returned?)

How do I do this? Is there a way that Excel can
be "fooled" into waiting for another application to finish
before proceeding?

Any help would be greatly appreciated. Thanks,

-- Russ

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 38
Default Simulating a synchronous process

Hi Russ
This may be of use (Also includes a few other links)
http://www.xcelfiles.com/VBA_01.html#anchor_16

"Russ" wrote in message ...
Hello,

In my VBA macro, I'm running an external application
(Clear Access, in this case) to get the data I need.
Unfortunately, a Clear Access query runs asynchronously,
so that the macro continues to run.

However, I want Excel to wait for the results of the query
to come back before continuing on. (For example, what if
there are no records returned?)

How do I do this? Is there a way that Excel can
be "fooled" into waiting for another application to finish
before proceeding?

Any help would be greatly appreciated. Thanks,

-- Russ

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 32
Default Simulating a synchronous process

Ah, another excellent Excel web site for my favorites...good info!

Just one thing, change every spelling of "weather" to "whether" on your web site unless you are talking about the sun/wind/rain ;-) It's okay, if it weren't
for spell-checking features people would have a hard time believing I graduated high school 8-)
Toby Erkson
Oregon, USA

On 22 Apr 2004 04:57:33 -0700, (Ivan F Moala) wrote:

Hi Russ
This may be of use (Also includes a few other links)
http://www.xcelfiles.com/VBA_01.html#anchor_16

"Russ" wrote in message ...
Hello,

In my VBA macro, I'm running an external application
(Clear Access, in this case) to get the data I need.
Unfortunately, a Clear Access query runs asynchronously,
so that the macro continues to run.

However, I want Excel to wait for the results of the query
to come back before continuing on. (For example, what if
there are no records returned?)

How do I do this? Is there a way that Excel can
be "fooled" into waiting for another application to finish
before proceeding?

Any help would be greatly appreciated. Thanks,

-- Russ


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Simulating a synchronous process

Thanks Toby and Ivan! This is exacly what I'm looking for.

BTW, sorry to reply so late after your response <:-)

Thanks again,

- Russ



-----Original Message-----
Ah, another excellent Excel web site for my

favorites...good info!

Just one thing, change every spelling of "weather"

to "whether" on your web site unless you are talking about
the sun/wind/rain ;-) It's okay, if it weren't
for spell-checking features people would have a hard time

believing I graduated high school 8-)
Toby Erkson
Oregon, USA

On 22 Apr 2004 04:57:33 -0700, (Ivan

F Moala) wrote:

Hi Russ
This may be of use (Also includes a few other links)
http://www.xcelfiles.com/VBA_01.html#anchor_16

"Russ" wrote in

message ...
Hello,

In my VBA macro, I'm running an external application
(Clear Access, in this case) to get the data I need.
Unfortunately, a Clear Access query runs

asynchronously,
so that the macro continues to run.

However, I want Excel to wait for the results of the

query
to come back before continuing on. (For example, what

if
there are no records returned?)

How do I do this? Is there a way that Excel can
be "fooled" into waiting for another application to

finish
before proceeding?

Any help would be greatly appreciated. Thanks,

-- Russ


.

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
Synchronous scrolling in all sheets of a wokbook. Oily Rag Excel Worksheet Functions 2 September 3rd 09 11:46 PM
Simulating a Zodiac with a chart gtslabs Charts and Charting in Excel 2 March 16th 09 07:16 PM
Un-Synchronous Panes Jon Excel Worksheet Functions 3 November 11th 08 05:01 PM
Input-Synchronous Call? Brian Q. Excel Programming 0 September 18th 03 12:41 PM
Simulating the Format Painter, Selection.Select, and taking focus David McRitchie[_2_] Excel Programming 3 July 10th 03 03:48 AM


All times are GMT +1. The time now is 01:26 AM.

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"