Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 1
Default go to worksheet on button name

I am trying to assign a macro to a button so that when clicked it opens the
worksheet whose name is on the button
  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 2,646
Default go to worksheet on button name

Copy this event sub in the code window of worksheet containing the button:

Private Sub CommandButton1_Click()
Worksheets(Me.CommandButton1.Caption).Select
End Sub

Regards,
Stefi

€˛Northern Dave€¯ ezt Ć*rta:

I am trying to assign a macro to a button so that when clicked it opens the
worksheet whose name is on the button

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do i add a function button to a worksheet? TammyMarie Excel Worksheet Functions 3 October 7th 08 05:19 PM
Moving a button on worksheet Jock Excel Worksheet Functions 5 November 2nd 07 03:50 PM
How do I put a toolbar button into a worksheet? Diamond1974 Excel Worksheet Functions 1 November 16th 06 01:41 PM
How can I use the tab button after protecting the worksheet? Joanne, BC Excel Worksheet Functions 2 December 6th 05 09:44 PM
print different worksheet by pressing visible button on worksheet Confused Excel Worksheet Functions 2 June 13th 05 02:22 PM


All times are GMT +1. The time now is 04:14 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"