rpaulson
Well-known Member
- Joined
- Oct 4, 2007
- Messages
- 1,428
I have this macro to go to the next worksheet
this issue is, when it gets to the last sheet it wont re-start at the beginning .
any ideas?
Ross
this issue is, when it gets to the last sheet it wont re-start at the beginning .
any ideas?
Code:
Sub Next_Division()
Set Sh = ActiveSheet
On Error Resume Next
Do While Sh.Next.Visible <> xlSheetVisible
If Err <> 0 Then Exit Do
Set Sh = Sh.Next
Loop
Sh.Next.Activate
On Error GoTo 0
End Sub
Ross