LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,253
Default Timed loop

exactly:
Important The Wait method suspends all Microsoft Excel activity and
may prevent you from performing other operations on your computer while
Wait is in effect. However, background processes such as printing and
recalculation continue.


thus a "timer" may be a bit more comfortable..


--
keepITcool
| www.XLsupport.com | keepITcool chello nl | amsterdam


Henry wrote :

Ram,

You don't need the For Next loop.
Application.Wait Now +(TimeValue("00:00:05")) will give you a five
second delay.
Application.Wait Now +(TimeValue("00:03:10")) will give you a three
minutes and ten seconds delay.
Application.Wait Now +(TimeValue("10:25:37")) will give you a ten
hour, twenty-five minutes and 37 seconds delay.
Etc., etc.
You may have to adjust the delay to take account of the length of
time that your program takes to run.

Do
'Your program here
Application.Wait Now +(TimeValue("00:00:05"))
While Now < TimeValue("17:00:00") 'Stops at 5PM

or use While 1<0 'to run continuously

Henry


"Ramthebuffs"
wrote in
message
...

I ended up using
Application.Wait Now + (TimeValue("00:00:01"))
along with a for next loop. Its not really pretty but gets the job
done for now.


--
Ramthebuffs
--------------------------------------------------------------------
---- Ramthebuffs's Profile:
http://www.excelforum.com/member.php...o&userid=16429
View this thread:
http://www.excelforum.com/showthread...hreadid=380747

 
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
Timed macros LiAD Excel Worksheet Functions 5 April 1st 09 09:24 AM
timed events H1 Excel Worksheet Functions 2 September 11th 08 01:54 PM
Timed Message Box FARAZ QURESHI Excel Discussion (Misc queries) 3 January 26th 07 03:13 PM
TIMED MSGBOX FARAZ QURESHI Excel Discussion (Misc queries) 6 January 3rd 07 08:24 PM
timed macro Decreenisi Excel Worksheet Functions 3 March 3rd 06 12:33 PM


All times are GMT +1. The time now is 11:51 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"