Hi
you could add this bit of code to the buttons click event
either one or the other
Code:
--------------------
Dim mySheet As Integer
'get value from Cell A1
mySheet = Range("A1").Value
'activates the sheet by position
Worksheets(mySheet + 1).Activate
'or you could do it this way
Dim MySheetName As String
'get name of sheet
MySheetName = "sheet" & Range("A1").Value
'open the sheet by name
Worksheets(MySheetName).Activate
--------------------
HTH
David
---
Message posted from
http://www.ExcelForum.com/