18th June 2013, 06:50 AM
|
Member
|
|
Join Date: Jan 1970
Posts: 4,425
|
|
Dennis,
Sub Test1()
On Error Resume Next
Sheets(ActiveSheet.Index + 1).Activate
If err.number <> 0 Then Sheets(1).Activate
End Sub
This will move to the next sheet without the need for incorporating the name in the macro. It has error checking to prevent runtime errors when it gets to the last sheet in the workbook.
|