Creating a Simple Delay
Add the following API declare to the declarations section of your code module:
Private Declare Sub Sleep Lib "kernel32" Alias "Sleep" (ByVal dwMilliseconds As Long)Now simply call it in your code using:
'Wait 2 seconds Sleep 2000&The only argument is the number of milliseconds to wait for.