This is a function (well actually its a sub), that I found on a website, it is by Tim Lasek. It is an easy to use time delay that could come in quite handy.
Here’s the code:
Delay(The delay time)
I hope this function is of some use to you and please feel free to modify the code further. As always feel free to contact me at email@example.com