On 2002-06-18 17:25, Nimrod wrote:
[Function]
Measure Elapsed time for code to perform it's operations.
[Method]
Insert code to measure in the middle of this procedure
Code:
Sub ShowElapsedTime()
Start = Timer ' Set start time.
' PLACE CODE YOU WANT TIMED HERE
Finish = Timer ' Set end time.
TotalTime = Finish - Start
MsgBox ("Elapsed Time " & TotalTime & " Seconds")
End Sub
OR A SLIMMED DOWN VERSION
Code:
Sub ShowElapsedTime2()
Start = Timer ' Set start time.
' PLACE CODE YOU WANT TIMED HERE
MsgBox ("Elapsed Time " & Timer - Start & " Seconds")
End Sub
_________________
<font size=-1>NOTE:</font.<font size=-1>
(Testing performed on Win2K utilizing Office 2000. Solutions may need tweaking for other versions.)</font><font size=+1><font color="blue">Adieu,<font color="red">N<font color="blue">imrod</font
This message was edited by Nimrod on 2002-06-18 17:28