Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Create Simple Button Script

Status
Not open for further replies.

team4344

Technical User
Jun 28, 2003
25
GB
Hello im using Excel 97. I would simply like to create a button which, when clicked on will take you to another worksheet in the same spreadsheet.. I have created a commadn button via the toolbox, but im not sure where to go from here..
Can anyone help... this is the code that i have at the moment. What do i need to add

==============================

Private Sub CommandButton12_Click()


End Sub

==============================

Many thanks for everyones help in advance (",) its much appreciated.

Regards

Ollie
 
Hi There, You just need,

Private Sub CommandButton12_Click()
Sheets("Sheet2").Select
End Sub

Where sheet2 is the name of the sheet you want to go to

Rgds, john

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top