Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Minimum time per interval

0 views
Skip to first unread message

Edmund Seet

unread,
Aug 26, 2003, 12:14:17 AM8/26/03
to
'The below sample line represents 2 minutes interval
Public Const cRunIntervalSeconds = 120 ' two minutes

I'm just curious what's the "minimum" interval that VBA
can accept?
0.1 sec?
0.01 sec?
0.001 sec?
0.0001 sec?
0.00001 sec or something else?

TIA
Edmund Seet

Patrickl Molloy

unread,
Aug 26, 2003, 2:28:30 AM8/26/03
to
one millisecond ie .001 of a second

>.
>

Rocky McKinley

unread,
Aug 26, 2003, 11:30:16 AM8/26/03
to
Hi Patrick,

Have you any example code of how to get Excel to use .001 seconds in Vb such
as using the "Application.Wait" method.

Thanks,
Rocky McKinley


"Patrickl Molloy" <xl_e...@xxxhotmail.com> wrote in message
news:01be01c36b9b$43ebdde0$a001...@phx.gbl...

Chip Pearson

unread,
Aug 26, 2003, 12:49:58 PM8/26/03
to
Rocky,

Use the Sleep API call for smaller time interval. It takes as its argument
the number of milleseconds.

Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)
Sub Test()
Sleep dwMilliseconds:=100&
End Sub


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
www.cpearson.com ch...@cpearson.com


"Rocky McKinley" <intuitiv...@shaw.ca> wrote in message
news:OgF91b%23aDH...@tk2msftngp13.phx.gbl...

Rocky McKinley

unread,
Aug 26, 2003, 1:04:16 PM8/26/03
to
Thanks Chip that works great! Where can I find out more about API calls so
I can utilize more of their powers.

--
Regards,
Rocky McKinley


"Chip Pearson" <ch...@cpearson.com> wrote in message
news:eMrLYI$aDHA...@TK2MSFTNGP09.phx.gbl...

Chip Pearson

unread,
Aug 26, 2003, 1:11:18 PM8/26/03
to
Rocky,

You can read the API reference at

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winprog/winprog/windows_api_start_page.asp

Examples in VB for many APIs can be found at
http://www.mentalis.org/index2.shtml


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
www.cpearson.com ch...@cpearson.com


"Rocky McKinley" <intuitiv...@shaw.ca> wrote in message

news:OInGXQ$aDHA...@TK2MSFTNGP09.phx.gbl...

Rocky McKinley

unread,
Aug 26, 2003, 1:24:07 PM8/26/03
to
Thanks for the help Chip.

--
Regards,
Rocky McKinley


"Chip Pearson" <ch...@cpearson.com> wrote in message

news:#rYLTU$aDHA...@TK2MSFTNGP10.phx.gbl...

Tom Ogilvy

unread,
Aug 26, 2003, 9:36:43 PM8/26/03
to
Make sure you save your work often.

--
Regards,
Tom Ogilvy

0 new messages