Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 39
Default A fun but not essential problem...

Does anyone have any idea how to make excel wait for
fractions of a second.

I reckon you will need an API call since Now() only
returns whole seconds.

I have absolutely no idea how to go about it so any
assistance would be much appreciated.

Nick
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 837
Default A fun but not essential problem...

If exact timing is not essential, just add a Do loop that does nothing,
and adjust the number of iterations to achieve roughly the right time.

Jerry

Nick wrote:

Does anyone have any idea how to make excel wait for
fractions of a second.

I reckon you will need an API call since Now() only
returns whole seconds.

I have absolutely no idea how to go about it so any
assistance would be much appreciated.


  #3   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default A fun but not essential problem...

Good point - I only asked for a timing function because I
wanted to link the wait time to a control but I suppose I
can just link the number of iterations to the control.

Cheers - that should sort it


-----Original Message-----
If exact timing is not essential, just add a Do loop that

does nothing,
and adjust the number of iterations to achieve roughly

the right time.

Jerry

Nick wrote:

Does anyone have any idea how to make excel wait for
fractions of a second.

I reckon you will need an API call since Now() only
returns whole seconds.

I have absolutely no idea how to go about it so any
assistance would be much appreciated.


.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default A fun but not essential problem...


Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)

Function ADelay(mSecs)
Sleep mSecs
End Sub


Adelay 500

waits half a second

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Nick" wrote in message
...
Does anyone have any idea how to make excel wait for
fractions of a second.

I reckon you will need an API call since Now() only
returns whole seconds.

I have absolutely no idea how to go about it so any
assistance would be much appreciated.

Nick



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
Colon at the end of excel file name(ex: problem.xls:1, problem.xls financeguy New Users to Excel 2 January 15th 10 01:15 AM
frustrated in backing up essential autofill and autocorrect files [email protected] Excel Discussion (Misc queries) 2 January 13th 07 10:10 PM
Started out as an Access problem. Now an Excel problem RobertM Excel Discussion (Misc queries) 2 April 26th 06 07:30 PM
problem with a conditional max problem Brian Cornejo Excel Discussion (Misc queries) 1 February 18th 05 06:25 PM
Problem when multipple users access shared xl-file at the same time, macrocode for solve this problem? OCI Excel Programming 0 May 16th 04 10:40 PM


All times are GMT +1. The time now is 01:42 AM.

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"