LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #10   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default Reset system clock?

Sorry John,

My mistake here. I tried to briefly summarise what I was doing to answer
Chip's point. The code is timed to run every 43 seconds to take into account
the time taken with the procedures. During the 43 second gap, control is
returned to the PC as it would be with "DoEvents" and "DoEvents" does
already appear on six occasions within the existing code.

Thanks again

Martin

jaf wrote in message
...
Hi Martin,
If your code is running constantly then Windows may not get enough cycles

to
do its housekeeping tasks and the slow running clock is the result.
There is a DoEvents command that you should run to let Windows catch up.
It releases (or stops) your code back to Windows and the code won't

continue
until Windows has finished doing its thing.
You CAN run DoEvents to often. Doing so will slow everything down.
Find a spot in your code to run a DoEvents every few minutes. Once a

minute
would be fine.




--
John
johnf 202 at hotmail dot com






 
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
Calculating a future date using system clock & time remaining Steve Chalom[_2_] Excel Worksheet Functions 1 November 5th 09 03:11 PM
Incremental time values based upon clock in and clock out times saltnsnails Excel Discussion (Misc queries) 8 January 13th 09 08:11 PM
Change EXCEL Clock to Standard Clock or Military Time YoMarie Excel Worksheet Functions 4 April 29th 07 08:39 PM
Code referencing the system clock? mcdowell[_2_] Excel Programming 1 October 10th 03 04:40 PM
Setting the system clock with excel ccdubs Excel Programming 3 August 7th 03 09:21 PM


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