Doevents Alternative – PAUSE Sub Routine – Better Alternative to Doevents

One of the problems with visual basic is the ability to gracefully pause the code for one reason or another.  Doevents is pretty awful in that it does very little to tame the processor and slow down things.

The PAUSE sub routine is much nicer, cleaner and more graceful and much better than DoEvents all by itself.

PAUSE Sub Routine

Enter the following code in a module and name it Pause.