Alternately, you could use this sub...
Sub Pause(Seconds) 'to use pause(1000) for 1 second
Dim PauseTime, Start
PauseTime = Seconds ' Set duration.
Start = Timer ' Set start time.
Do While Timer < Start + Seconds
DoEvents ' Yield to other processes.
Loop
Finish = Timer ' Set end time.
End Sub
Although in my opinion the api call fenris showed you
is better
Dragnut