Display worksheets for 45 - 60 seconds and tab to next in a loop?

pfulghum70

New Member
Joined
Oct 16, 2015
Messages
3
i have a workbook that has numerous worksheets that i would like to scroll/loop through with 45-60 second pause. I have tried numerous of the code online to no avail. any ideas would help.

thanks

Paul
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Try this:

I set this to 10 seconds you can change it later after you see how it works:

Code:
Sub See_Sheets()
Dim i As Long
    For i = 1 To Sheets.Count
        Sheets(i).Activate
        Application.Wait (Now + TimeValue("0:00:10"))
    Next
End Sub
 
Upvote 0
Try:
Code:
Sub test()
    Dim ws As Worksheet
    For Each ws In Sheets
        ws.Activate
        Application.Wait (Now + #12:00:45 AM#)
    Next ws
End Sub
Change the 45 to suit your needs.
 
Upvote 0
Your wanting a way to stop it when you want before it gets through all the sheets? Is that what your wanting. Or are you saying you want it to keep looping thru all the sheets and the start over and then start over and then start over till you stop it. Like a continuous looping slide show.
 
Upvote 0
If your wanting to keep seeing all the sheets over and over till you hit escape try this:

Code:
Sub See_Sheets()
Dim i As Long
Dim x As Long
x = 5
   Do While x > 2
   x = x + 1
    
    For i = 1 To Sheets.Count
        Sheets(i).Activate
        Application.Wait (Now + TimeValue("0:00:10"))
    Next
    Loop
End Sub
 
Upvote 0

Forum statistics

Threads
1,213,491
Messages
6,113,963
Members
448,536
Latest member
CantExcel123

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top