Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 39
Default Pause a macro for some time

Hello there and happy new year to all, and as always thank you very
much to all people providing this so much look after help.

I have design the full process of my data retrieval in the following
way:

Sub Global
Sub1
Sub2
Sub3
Sub4
End Sub

The point is once Sub2 is launched it needs one minute or so to
retrieve datas through DDE links to another application,
so when Sub3 is launched, Sub2 did not finished to retrieve these datas
and the results are so meaning less.
I tried to use Wait argument as

Sub Global
Sub1
Sub2
Application.Wait (Now + TimeValue("0:01:00"))
Sub3
Sub4
End Sub

And Wait stop the full process while Sub2 should continue to retrieve
datas. As the datas are not retrived it is useless.
What I would need is just nothing to happen for a minute - time for
datas to be downloaded, and then, and only then would run Sub3 and Sub4

Many thanks your help would be much welcomed!

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 39
Default Pause a macro for some time

the help file is very clear ...
but how to implement anything holding on everything for a minute or so?
regards
Daniel

On Jan 2, 1:55 pm, "Don Guillett" wrote:
--
Don Guillett
SalesAid Software
"Don Guillett" wrote in l...

Have a look in the vba help index for enableevents
--
Don Guillett
SalesAid Software

wrote in message
roups.com...
Hello there and happy new year to all, and as always thank you very
much to all people providing this so much look after help.


I have design the full process of my data retrieval in the following
way:


Sub Global
Sub1
Sub2
Sub3
Sub4
End Sub


The point is once Sub2 is launched it needs one minute or so to
retrieve datas through DDE links to another application,
so when Sub3 is launched, Sub2 did not finished to retrieve these datas
and the results are so meaning less.
I tried to use Wait argument as


Sub Global
Sub1
Sub2
Application.Wait (Now + TimeValue("0:01:00"))
Sub3
Sub4
End Sub


And Wait stop the full process while Sub2 should continue to retrieve
datas. As the datas are not retrived it is useless.
What I would need is just nothing to happen for a minute - time for
datas to be downloaded, and then, and only then would run Sub3 and Sub4


Many thanks your help would be much welcomed!


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
How do I pause a macro? Dave H Excel Discussion (Misc queries) 5 May 3rd 08 04:53 PM
pause macro Art Parra Excel Programming 1 August 29th 06 12:16 AM
Pause Macro 2 Ollie Excel Discussion (Misc queries) 3 June 15th 06 04:49 AM
Pause Macro cottage6 Excel Programming 2 April 14th 06 04:23 PM
Pause a Macro? Jimbo Excel Programming 2 October 14th 04 04:21 AM


All times are GMT +1. The time now is 03:30 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"