Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
mar mar is offline
external usenet poster
 
Posts: 3
Default Navigating between worksheets

I have many worksheets in one Excel file.

Granted, I have that worksheet-toolbar at the bottom,
but not all worksheet-labels are visible at any instant
of time. I have to click on arrows to get to the hidden
ones. That search takes relatively a lot of time.

Any suggestion as of I how could I get a more elegant
navigation for a many-worksheet Excel file(*)?
Thanks.

MK


(*)
Like for example the multi-level tab control, commonly
found in Windows system Properties dialogs. Or a system
of menus. Whatever.




  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,337
Default Navigating between worksheets

Try a right click on the arrows at the bottom left

"mar" wrote in message
...
I have many worksheets in one Excel file.

Granted, I have that worksheet-toolbar at the bottom,
but not all worksheet-labels are visible at any instant
of time. I have to click on arrows to get to the hidden
ones. That search takes relatively a lot of time.

Any suggestion as of I how could I get a more elegant
navigation for a many-worksheet Excel file(*)?
Thanks.

MK


(*)
Like for example the multi-level tab control, commonly
found in Windows system Properties dialogs. Or a system
of menus. Whatever.






  #3   Report Post  
Posted to microsoft.public.excel.programming
mar mar is offline
external usenet poster
 
Posts: 3
Default Navigating between worksheets

"Don Guillett" wrote

Try a right click on the arrows at the bottom left


Right-clicking is too sophisticated for my users.
Seriously.


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Navigating between worksheets

David McRitchie has a macro to build a table of contents:

http://www.mvps.org/dmcritchie/excel/buildtoc.htm

--
Regards,
Tom Ogilvy

"mar" wrote in message
...
I have many worksheets in one Excel file.

Granted, I have that worksheet-toolbar at the bottom,
but not all worksheet-labels are visible at any instant
of time. I have to click on arrows to get to the hidden
ones. That search takes relatively a lot of time.

Any suggestion as of I how could I get a more elegant
navigation for a many-worksheet Excel file(*)?
Thanks.

MK


(*)
Like for example the multi-level tab control, commonly
found in Windows system Properties dialogs. Or a system
of menus. Whatever.






  #5   Report Post  
Posted to microsoft.public.excel.programming
mar mar is offline
external usenet poster
 
Posts: 3
Default Navigating between worksheets

"Tom Ogilvy" wrote

David McRitchie has a macro to build a table of contents:

http://www.mvps.org/dmcritchie/excel/buildtoc.htm



Thanks, will test it.




  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 96
Default Navigating between worksheets

I use the following set of subroutines to create a toolbar with a
ComboBox and a ControlButton that docks to the right of my Standard
Toolbar. It alphabetizes the worksheet names in the ComboBox. When I
switch workbooks, I just hit the Button and it brings up all the
worksheets in that workbook.

I adapted this from some code provided by Dave Peterson. I placed this
in my Personal.xls workbook. NewMenu is called in the Workbook_Open
event. Watch for linewrap.

----------------------------------------------------------------------------------------------------------

Sub NewMenu()
'' Display new toolbar with a combobox and button to change sheets.

Dim Cb As CommandBar, Cbstd As CommandBar
Dim Ctrl As CommandBarControl

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

Set Cbstd = Application.CommandBars("Standard")
Set Cb = Application.CommandBars.Add(Name:="SheetSelector",
Temporary:=True)
With Cb

.Visible = True

Set Ctrl = .Controls.Add(Type:=msoControlButton,
Temporary:=True)
With Ctrl
.Style = msoButtonCaption
.Caption = "Worksheet List"
.OnAction = ThisWorkbook.Name & "!AllWorksheets"
End With

Set Ctrl = .Controls.Add(Type:=msoControlComboBox,
Temporary:=True)
With Ctrl
.AddItem "Click Worksheet List"
.OnAction = ThisWorkbook.Name & "!SelectSheet"
.Tag = "Where"
.DropDownLines = 12
End With

End With

With Application
.CommandBars("SheetSelector").Position =
..CommandBars("Standard").Position
.CommandBars("SheetSelector").RowIndex =
..CommandBars("Standard").RowIndex
.CommandBars("SheetSelector").Left =
..CommandBars("Standard").Width + 1
End With

End Sub

Sub SelectSheet()
'' Select a worksheet.

Static bHidden As Boolean
Dim strSheet As String
Dim wSht As Worksheet

With Application.CommandBars.ActionControl
strSheet = .List(.ListIndex)
End With

Set wSht = Nothing
On Error Resume Next
Set wSht = Worksheets(strSheet)
On Error GoTo 0

If wSht Is Nothing Then
AllWorksheets
Else
If bHidden Then ActiveSheet.Visible = False: bHidden = False
With wSht
If .Visible = False Then .Visible = True: bHidden = True
.Select
End With
End If

End Sub

Sub AllWorksheets()
'' Loads the ActiveWorkBook's Sheet' Names into ComboBox

Dim Ctrl As CommandBarControl
Dim intC As Integer, intCount As Integer
Dim strSheets() As String
Dim wSht As Worksheet

Set Ctrl =
Application.CommandBars("SheetSelector").FindContr ol(Tag:="Where")
Ctrl.Clear

intCount = ActiveWorkbook.Sheets.Count
ReDim strSheets(1 To intCount)

For intC = 1 To intCount
strSheets(intC) = ActiveWorkbook.Sheets(intC).Name
Next intC

Call BubbleSort(strSheets, strSheets)

For intC = 1 To intCount
Ctrl.AddItem strSheets(intC)
Next intC

End Sub

Sub BubbleSort(strList() As String, strSecond() As String)
'' Sorts an array.

Dim intFirst As Integer, intLast As Integer
Dim intI As Integer, intJ As Integer
Dim strTemp As String, strTemp2 As String

intFirst = LBound(strList)
intLast = UBound(strList)

For intI = intFirst To intLast - 1
For intJ = intI + 1 To intLast
If strList(intI) strList(intJ) Then
strTemp = strList(intJ)
strTemp2 = strSecond(intJ)
strList(intJ) = strList(intI)
strSecond(intJ) = strSecond(intI)
strList(intI) = strTemp
strSecond(intI) = strTemp2
End If
Next intJ
Next intI

End Sub

Using Excel 97SR2 on Windows 98SE,

HTH
Paul
--------------------------------------------------------------------------------------------------------------
Be advised to back up your WorkBook before attempting to make changes.
--------------------------------------------------------------------------------------------------------------

I have many worksheets in one Excel file.

Granted, I have that worksheet-toolbar at the bottom,
but not all worksheet-labels are visible at any instant
of time. I have to click on arrows to get to the hidden
ones. That search takes relatively a lot of time.

Any suggestion as of I how could I get a more elegant
navigation for a many-worksheet Excel file(*)?
Thanks.

MK


(*)
Like for example the multi-level tab control, commonly
found in Windows system Properties dialogs. Or a system
of menus. Whatever.




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
Navigating between worksheets using the keyboard? [email protected] Excel Worksheet Functions 2 January 14th 09 05:46 PM
navigating between worksheets Louise Excel Worksheet Functions 3 October 9th 06 05:11 PM
navigating between worksheets Luke Excel Discussion (Misc queries) 1 November 10th 05 01:11 AM
navigating between worksheets exceluserforeman Excel Discussion (Misc queries) 1 November 10th 05 12:36 AM
Navigating between worksheets. shazza Excel Worksheet Functions 1 November 4th 04 12:19 AM


All times are GMT +1. The time now is 12:05 AM.

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

About Us

"It's about Microsoft Excel"