I had the code below on a button, but when I press the button nothing happens, I am on sheet 1 of 31 when I press the buton.
Any ideas from anyone?
Thanks
Ronan
Any ideas from anyone?
Code:
Sub NextSheet()
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
sh.Visible = False
End Sub
Thanks
Ronan