thanks sir
kavi

On Jan 26, 3:39 am, santosh bahuguna <santoshbahug...@gmail.com>
wrote:
> Dim PauseTime, Start, Finish, TotalTime
> If (MsgBox("Press Yes to pause for 5 seconds", 4)) = vbYes Then
>     PauseTime = 5    ' Set duration.
>     Start = *Timer*    ' Set start time.
>     Do While *Timer* < Start + PauseTime
>         DoEvents    ' Yield to other processes.
>     Loop
>     Finish = *Timer*    ' Set end time.
>     TotalTime = Finish - Start    ' Calculate total time.
>     MsgBox "Paused for " & TotalTime & " seconds"
> Else
>     End
> End If
>
> Using this code in for wait time
>
>
>
> On Fri, Jan 15, 2010 at 2:53 PM, memonkavi <memonk...@gmail.com> wrote:
> > sir
> > how can stop  a loop by time in excel vb code
>
> > --
>
> > ---------------------------------------------------------------------------­-------
> > Some important links for excel users:
> > 1. Follow us in TWITTER for tips tricks and links :
> >http://twitter.com/exceldailytip
> > 2. Excel and VBA Tutorials(Video and Text), Free add-ins downloads at
> >http://www.excelitems.com
> > 3. Excel tutorials athttp://www.excel-macros.blogspot.com
> > 4. Learn VBA Macros athttp://www.quickvba.blogspot.com
> > 5. Excel Tips and Tricks athttp://exceldailytip.blogspot.com
>
> > To post to this group, send email to excel-macros@googlegroups.com
> > If you find any spam message in the group, please send an email to:
> > Ayush Jain  @ jainayus...@gmail.com
> > <><><><><><><><><><><><><><><><><><><><><><>
> > HELP US GROW !!
>
> > We reach over 6,500 subscribers worldwide and receive many nice notes about
> > the learning and support from the group.Let friends and co-workers know they
> > can subscribe to group at
> >http://groups.google.com/group/excel-macros/subscribe- Hide quoted text -
>
> - Show quoted text -

-- 
----------------------------------------------------------------------------------
Some important links for excel users:
1. Follow us on TWITTER for tips tricks and links : 
http://twitter.com/exceldailytip
2. Excel and VBA Tutorials(Video and Text), Free add-ins downloads at 
http://www.excelitems.com
3. Excel tutorials at http://www.excel-macros.blogspot.com
4. Learn VBA Macros at http://www.quickvba.blogspot.com
5. Excel Tips and Tricks at http://exceldailytip.blogspot.com
 

To post to this group, send email to excel-macros@googlegroups.com
If you find any spam message in the group, please send an email to:
Ayush Jain  @ jainayus...@gmail.com
<><><><><><><><><><><><><><><><><><><><><><>
HELP US GROW !!

We reach over 6,700 subscribers worldwide and receive many nice notes about the 
learning and support from the group.Let friends and co-workers know they can 
subscribe to group at http://groups.google.com/group/excel-macros/subscribe

Reply via email to