Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 43
Default how to set an interval

hi,

i want to put an interval into a loop

how to do it

for example

for each k in ks

msgbox k.name

interval(say,10 senconds)

next


thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default how to set an interval


Hello,

Here's how...

For Each k In ks
MsgBox k.name
'Pause 10 seconds
Application.Wait(Now + TimeValue("0:00:10"))
Next k

Sincerely,
Leith Ross


--
Leith Ross
------------------------------------------------------------------------
Leith Ross's Profile: http://www.excelforum.com/member.php...o&userid=18465
View this thread: http://www.excelforum.com/showthread...hreadid=508818

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default how to set an interval


Hello,

Here's how...

For Each k In ks
MsgBox k.name
'Pause 10 seconds
Application.Wait(Now + TimeValue("0:00:10"))
Next k

Sincerely,
Leith Ross


--
Leith Ross
------------------------------------------------------------------------
Leith Ross's Profile: http://www.excelforum.com/member.php...o&userid=18465
View this thread: http://www.excelforum.com/showthread...hreadid=508818

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default how to set an interval


Wait will work but will suspend all other operations. In case you wan
do " some thing else " while your timer is also running, use OnTim
method. It is like setting an alarm. You set OnTime for 10 secs t
execute your procedure and do whatever else you want to do. At exactl
at the set time your proc will execute. At the end of your proc yo
could set another OnTime for 10 secs and you are free to do somethin
else instead of waiting for loop to count 10 seconds.

A V Veerka

--
avveerka
-----------------------------------------------------------------------
avveerkar's Profile: http://www.excelforum.com/member.php...fo&userid=3033
View this thread: http://www.excelforum.com/showthread.php?threadid=50881

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 43
Default how to set an interval

Thanks a lot.

Thanks to$B!!(Ball.

"Leith Ross" wrote
in message ...

Hello,

Here's how...

For Each k In ks
MsgBox k.name
'Pause 10 seconds
Application.Wait(Now + TimeValue("0:00:10"))
Next k

Sincerely,
Leith Ross


--
Leith Ross
------------------------------------------------------------------------
Leith Ross's Profile:

http://www.excelforum.com/member.php...o&userid=18465
View this thread: http://www.excelforum.com/showthread...hreadid=508818


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
Interval between now and next birthday WilDeliver Excel Worksheet Functions 3 April 16th 10 01:37 PM
Look-up a value within an interval Christine Excel Worksheet Functions 12 September 26th 08 06:14 PM
how i create a interval demetrio29 Excel Discussion (Misc queries) 3 September 23rd 08 10:50 PM
interval formula xposedphotography Excel Discussion (Misc queries) 1 April 6th 08 05:51 PM
Sum.if date is in an interval... Mikael Lindqvist Excel Worksheet Functions 6 November 13th 07 10:06 AM


All times are GMT +1. The time now is 02:18 PM.

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"