Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Unknown Reason for Code

Status
Not open for further replies.

bhujanga

Programmer
Oct 18, 2007
181
US
I'm doing some update to an Excel workbook that another person originally made. I notice that he begins all of his macros with following code:

Dim PauseTime, Start
PauseTime = 0.5
Start = Timer
Do While Timer < Start + PauseTime
DoEvents
Loop

I don't know what the purpose for this code is and thought maybe it was something that is a good idea to put in for some reason. Any insights?
 
Seems like there may have been some performance issues on the system for which the code was originally written. It shouldn't be necessary.

Cheers
Paul Edstein
[MS MVP - Word]
 
How are ya bhujanga . . .

The [blue]calling routines[/blue] to these macros might shed some light. You'll have to check them out.


See Ya! . . . . . .

Be sure to see faq219-2884 [blue]Worthy Reading![/blue] [thumbsup2]
Also faq181-2886 [blue]Worthy Reading![/blue] [thumbsup2]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top