Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Summary sheet

I have workbook contain about 45 sheets, and I need to create one Summary
sheat containing buttons for names of all sheats.
The qustion is How to make a each Button open a specified sheet.
best regards
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8,520
Default Summary sheet

Private Sub CommandButton1_Click()
Sheets("Sheet2").Activate
End Sub

If this post helps click Yes
---------------
Jacob Skaria


"NIDAL" wrote:

I have workbook contain about 45 sheets, and I need to create one Summary
sheat containing buttons for names of all sheats.
The qustion is How to make a each Button open a specified sheet.
best regards

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,069
Default Summary sheet

Rather than add lots of buttons to a worksheet use a custom toolbar with
single button. This when pressed, will produce menu of all worksheets in your
workbook - click on required sheet to goto to it.

ensure code is pasted where instructed

Hope helpful


''''''''Palce this code in thisworkbook''''''''''''''
'''''''''''''''''''''''''''''''''''''''''''''''''' '''
Private Sub Workbook_BeforeClose(Cancel As Boolean)
On Error Resume Next
Application.CommandBars("Get Sheet").Delete
On Error GoTo 0
End Sub

Private Sub Workbook_Open()
createmenubar
End Sub
'''''''''''''''''''''''''''''''''''''''''''''''''
''''''''''''''''''''''''''''''''''''''''''''''''

''''''''place this code in standard module''''''
''''''''''''''''''''''''''''''''''''''''''''''''
Sub createmenubar()

On Error Resume Next
Application.CommandBars("Get Sheet").Delete
On Error GoTo 0

With Application.CommandBars.Add
.Name = "Get Sheet"
.Protection = msoBarNoProtection
.Visible = True
.Position = msoBarTop

With .Controls.Add(Type:=msoControlButton)

.Width = 100

.OnAction = "SelectSheet"

.Caption = "Select Sheet"
.Style = msoButtonIconAndCaption

End With


End With
End Sub

Sub SelectSheet()
Dim ws1 As Worksheet
If ActiveWorkbook.Sheets.Count <= 16 Then
Application.CommandBars("Workbook Tabs").ShowPopup 500, 225
Else
Application.CommandBars("Workbook Tabs").Controls("More
Sheets...").Execute
End If

Set ws1 = Worksheets(ActiveSheet.Name)
End Sub

--
jb


"NIDAL" wrote:

I have workbook contain about 45 sheets, and I need to create one Summary
sheat containing buttons for names of all sheats.
The qustion is How to make a each Button open a specified sheet.
best regards

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
Copy two summary ranges to master summary sheet a m spock Excel Programming 5 September 13th 08 01:49 PM
How to copy from each sheet and paste to a summary sheet [email protected] Excel Programming 2 January 18th 08 09:01 PM
Generate sheet names from list, assign data to summary sheet. [email protected][_2_] Excel Programming 4 June 20th 07 09:17 PM
How can i copy data from a tabbed working sheet to a summary sheet StephenF Excel Discussion (Misc queries) 1 March 15th 07 03:40 PM
Relative Sheet Reference (Summary Sheet) [email protected] Excel Discussion (Misc queries) 2 October 1st 05 10:42 AM


All times are GMT +1. The time now is 07:20 AM.

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"