PC Review


Reply
Thread Tools Rate Thread

Can the Application.wait method create a pause less than a second?

 
 
Gum
Guest
Posts: n/a
 
      3rd Oct 2008
I have often read that the application.wait method of introducing a pause in
a thread is limited to a second or multiples thereof. Is this true? If it
is true, then is there an alternative. If not, then how is the familiar
'timevalue()' written so that it accesses values that represent a part of a
second.
 
Reply With Quote
 
 
 
 
Mike H
Guest
Posts: n/a
 
      3rd Oct 2008
Hi,

I don't believe application.wait can discriminate less than 1 second but
maybe this

Sub SlowDown()
Dim x As Single
x = Timer
While Timer - x < 0.5
Wend
End Sub

Mike

"Gum" wrote:

> I have often read that the application.wait method of introducing a pause in
> a thread is limited to a second or multiples thereof. Is this true? If it
> is true, then is there an alternative. If not, then how is the familiar
> 'timevalue()' written so that it accesses values that represent a part of a
> second.

 
Reply With Quote
 
Jon Peltier
Guest
Posts: n/a
 
      3rd Oct 2008
And if you stick a DoEvents between While and Wend, you won't completely
freeze up the machine while waiting.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
Peltier Technical Services, Inc. - http://PeltierTech.com
_______


"Mike H" <(E-Mail Removed)> wrote in message
news:9B916619-C02E-4C27-B271-(E-Mail Removed)...
> Hi,
>
> I don't believe application.wait can discriminate less than 1 second but
> maybe this
>
> Sub SlowDown()
> Dim x As Single
> x = Timer
> While Timer - x < 0.5
> Wend
> End Sub
>
> Mike
>
> "Gum" wrote:
>
>> I have often read that the application.wait method of introducing a pause
>> in
>> a thread is limited to a second or multiples thereof. Is this true? If
>> it
>> is true, then is there an alternative. If not, then how is the familiar
>> 'timevalue()' written so that it accesses values that represent a part of
>> a
>> second.



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Looking for code to wait/pause for input... adimax@gmail.com Microsoft Outlook VBA Programming 9 28th Feb 2008 09:35 PM
VBA to Pause or Wait 10 seconds before continuing code =?Utf-8?B?SWFuNDc=?= Microsoft Powerpoint 4 23rd Aug 2007 09:14 AM
pause vba action without using Application.Wait? mikesalemi@gmail.com Microsoft Excel Programming 2 21st Dec 2005 07:12 PM
Pause (or Wait) =?Utf-8?B?S2l0Q2F6?= Microsoft Access Form Coding 1 20th May 2005 03:59 PM
Pause/Wait Command Mark Microsoft Access Macros 1 20th Sep 2004 07:50 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:27 PM.