Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Minimum time per interval

'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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Minimum time per interval

one millisecond ie .001 of a second

-----Original Message-----
'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
.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 102
Default Minimum time per interval

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" wrote in message
...
one millisecond ie .001 of a second

-----Original Message-----
'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
.



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 102
Default Minimum time per interval

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" wrote in message
...
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


"Rocky McKinley" wrote in message
...
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" wrote in message
...
one millisecond ie .001 of a second

-----Original Message-----
'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
.









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
Help with time interval [email protected] Excel Worksheet Functions 10 December 27th 08 11:08 PM
x-axis time interval John Charts and Charting in Excel 1 June 7th 08 02:23 AM
time interval calculation Sikander New Users to Excel 4 August 24th 07 06:56 AM
Time interval worksheet function Zb Kornecki Excel Worksheet Functions 3 March 13th 07 07:33 PM
time interval calculations in excel Krishna Excel Discussion (Misc queries) 6 April 8th 05 02:57 PM


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