wrote :: 2006.01.17
Sub Sample1()
Worksheets(ActiveSheet.Index + 1).Activate
End Sub
Sub Sample1()
ActiveSheet.Next.Activate
End Sub
Sub Sample2()
If ActiveSheet.Next Is Nothing Then
MsgBox "右端です"
Else
MsgBox "右端ではありません"
End If
End Sub
''Indexプロパティを使ったやり方
Sub Sample3()
If ActiveSheet.Index = Worksheets.Count Then
MsgBox "右端です"
Else
MsgBox "右端ではありません"
End If
End Sub