How do I pause a Macro whilst it is running?

G

Gary

I have a macro which simply switches between two
worksheets, but I would like to pause the macro so that it
shows one worksheet for say 2 minutes and then switches to
the next worksheet for say 2 minutes and then starts again.

I know how to loop - it is just the "pausing" that I
cannot work out.

Does anyone have any ideas?
 
J

JE McGimpsey

One way:

Do While True
For i = 1 to 2
Sheets(i).Select
Application.Wait Now + TimeSerial(0, 2, 0)
Next i
Loop
 
Top