See attached file where I added this code in a module.. I hope it's what you need:
Public sheetIndex As Integer
Public myTime
Sub startTiming()
sheetIndex = 1
myTime = Now + TimeValue("00:01:00")
Application.OnTime myTime, "showSheet"
End Sub
Sub showSheet()
With ThisWorkbook
Do
If sheetIndex < .Sheets.Count Then
sheetIndex = sheetIndex + 1
Else
sheetIndex = 1
End If
Loop While LCase(.Sheets(sheetIndex).Name) Like "*working*sheet*"
.Sheets(sheetIndex).Activate
DoEvents
End With
myTime = Now + TimeValue("00:01:00")
Application.OnTime myTime, "showSheet"
End Sub
Sub stopClock()
On Error Resume Next
Application.OnTime _
EarliestTime:=myTime, _
Procedure:="showSheet", _
Schedule:=False
On Error GoTo 0
End Sub
Regards,
Antonio
Bookmarks