One of our accounting department log files is maintained as a workbook with a large and growing number of sheets, each named for the client to which it pertains. Scrolling the tabs is crazy-making. I can envision building a navigation page with a button for each letter of the alphabet which generate a dynamic list of matching tabs for one-click navigation, but (1) I don’t have time to figure out how to do that and (2) I can’t believe there isn’t something “built in” to go to a tab more efficiently. “Find” might be the best short-term workaround. Is there another/better way to leap among sheets in a workbook?
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
Navigation suggestions? 95 sheets! (2000/SR-1)
Home » Forums » AskWoody support » Productivity software by function » MS Excel and spreadsheet help » Navigation suggestions? 95 sheets! (2000/SR-1)
- This topic has 17 replies, 9 voices, and was last updated 23 years, 3 months ago.
AuthorTopicWSjscher2000
AskWoody LoungerMarch 12, 2002 at 5:33 pm #368094Viewing 2 reply threadsAuthorReplies-
WSJim Cone
AskWoody Lounger -
WSjscher2000
AskWoody LoungerMarch 12, 2002 at 7:58 pm #575883That’s great. I can right-click, then click More Sheets…, then choose from the Activate dialog. I wonder if I can get there faster? Yes!
This will pop up the dialog:
[indent]
Public Sub PopActivateSheets() CommandBars("Workbook tabs").Controls("More Sheets...").Execute End Sub
[/indent]Thanks for your help in tracking this down.
-
WSAlanMiller
AskWoody Lounger -
WSJIMbythebay
AskWoody Lounger -
WSJohnBF
AskWoody Lounger -
WSJIMbythebay
AskWoody Lounger -
WSJohnBF
AskWoody LoungerMarch 15, 2002 at 9:11 pm #576534So we need something like this, with my questions resolved, and code de-uglied …
Sub showtabs()
Dim sSht As Worksheet
Dim cCht As Chart
Dim intC As Integer
For Each sSht In ThisWorkbook.Sheets
If sSht.Visible = True Then intC = intC + 1
Next sSht
‘do charts show in the pop-up? prolly a cleaner way to do this …
For Each cCht In ThisWorkbook.Charts
If cCht.Visible = True Then intC = intC + 1
Next cCht
If intC < 17 Then
‘show the appropriate commandbar, whatever it is, any takers?
Else
CommandBars(“Workbook tabs”).Controls(“More Sheets…”).Execute
End If
End Sub -
WSJIMbythebay
AskWoody LoungerMarch 15, 2002 at 9:48 pm #576540John – try this.
Dim sht, n As Integer n = 0 For Each sht In ActiveWorkbook.Sheets If sht.Visible = -1 Then n = n + 1 Next sht If n <= 16 Then CommandBars("Workbook tabs").ShowPopup Else CommandBars("Workbook tabs").Controls("More Sheets...").Execute End If
Comments: 1) “Sheets” collection includes worksheets and chart sheets, so there is no need treat each one differently in this context. 2) ShowPopup shows the little pop-up you see if you right-click the sheet nav arrows when the number of visible sheets is 16 or less.
-
WSAlanMiller
AskWoody LoungerMarch 16, 2002 at 11:24 am #576617Hi Jim
Method works well here. The only addition I’d like to make is for the checkbox mark on the popup to be restored to the currently active sheet. I’m presuming that looping through the sheets somehow sets this to the last visible sheet in the workbook (tried only for n<17).
I'm sure there's a simple one liner to reset the checked box to the current sheet, but being new to VBA, I had no luck locating the appropriate code.
cheers
Alan
-
WSJIMbythebay
AskWoody Lounger -
WSAlanMiller
AskWoody LoungerMarch 18, 2002 at 11:48 pm #577001I can see that this is a better solution. The problem with the solutions posted prior to Rory’s, was that counting the sheets resulted in the incorrect sheet being checked in the popup. My solution corrected this problem, but subsequently, Rory’s solution doesn’t even encounter/cause it.
Alan
-
-
-
WSjscher2000
AskWoody LoungerMarch 17, 2002 at 1:33 am #576693I didn’t test enough. If there are too few sheets for the More Sheets… item to be available you will get that error. This code works around it:
Public Sub PopActivateSheets() On Error Resume Next CommandBars("Workbook tabs").Controls("More Sheets...").Execute If Err.Number 0 Then If Err.Number = 5 Then 'Not that many tabs CommandBars("Workbook tabs").ShowPopup Else MsgBox "Error number" & Err.Number & vbCrLf & Err.Description End If End If End Sub
And call me Jefferson.
-
WSrory
AskWoody Lounger
-
-
-
WSServando
AskWoody LoungerMarch 15, 2002 at 4:34 pm #576498Hi Jefferson.
This is what I do…
I make a navigation sheet and make the list of clients. In the cell that corresponding to client, I create a HyperLink (I believe that it is Ctl +K in the version in English) and I associate it to the Sheet of client.
(text See my attachment file, also it has a routine that orders your worksheets ascendingtext)I believe that it is a easy way
WSTricky
AskWoody LoungerMarch 16, 2002 at 3:17 pm #576637You should click here and download the FREE add-in. There is a utility included that will create an INDEX sheet for you with hyper-links to every sheet in your project. It takes 2-seconds!
If you’re not a fan of add-ins, you could simply uninstall the add-in once you’ve created the index sheet. BTW, once the index sheet is created (and it does a good job), you can do a little cosmetic work if you desire. But the tedious part of building the sheet is handled in an instant. Very nice!
-
WSfburg
AskWoody LoungerMarch 16, 2002 at 5:57 pm #576660Ricky,
Here’s some trivial code (never thought I’d hear me say that) that adds a new sheet, called xxSheetTOC, loops thru all the sheets in the workbook including the new one (could be skipped), and adds a link to each sheet in the bunch. I just don’t like add-ins since they take more time at load time. You could pretty this up also – it’s just bare bones. Also, some extra code would be needed if you wanted to run this again after you’ve added a new sheet to update the TOC (either delete the xxSheetTOC if it exists and start again, probably the easiest; or go thru the sheets and add a link to the TOC sheet if not already in the list).
Sub SheetTOC()
Dim sht As Worksheet, shtname As String, i As IntegerSheets.Add ‘add a sheet to left of whatever sheet is current; move if desired
shtname = ActiveSheet.Name
Sheets(shtname).Select
Sheets(shtname).Name = “xxSheetTOC” ‘need unique name
Cells(1, 1) = “Sheet Name”
i = 1For Each sht In ActiveWorkbook.Sheets
i = i + 1
Cells(i, 1).Select
Cells(i, 1) = sht.Name ‘includes the xxSheetTOC
ActiveSheet.Hyperlinks.Add Anchor:=Selection, Address:=””, SubAddress:=sht.Name & “!A1”
Next sht
End Subfred
-
WSAlanMiller
AskWoody LoungerMarch 17, 2002 at 12:42 pm #576765Thanks Fred. Using your code in combination with Jim’s, I can achieve the desired result, to have the active sheet correctly checked in the popup:
Dim sht, n As Integer
Dim small As Boolean
Dim shtname As Stringn = 0
small = True
shtname = ActiveSheet.NameFor Each sht In ActiveWorkbook.Sheets ‘ count sheets
If sht.Visible = -1 Then n = n + 1
Next sht
If n > 16 Then small = FalseSheets(shtname).Select ‘ resets checkmark in popup to active sheet
‘ show appropriate popup
If (small) Then
CommandBars(“Workbook tabs”).ShowPopup
Else
CommandBars(“Workbook tabs”).Controls(“More Sheets…”).Execute
End IfAlan
-
Viewing 2 reply threads -

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
Windows 11 Insider Preview build 26200.5661 released to DEV
by
joep517
35 minutes ago -
Windows 11 Insider Preview build 26120.4452 (24H2) released to BETA
by
joep517
36 minutes ago -
Hello Windows…My Problem is Windows Hello…
by
rdleib
1 hour, 52 minutes ago -
New Canon Printer Wants Data Sent
by
Win7and10
2 hours, 10 minutes ago -
I set up passkeys for my Microsoft account
by
Lance Whitney
1 minute ago -
AI is for everyone
by
Peter Deegan
1 hour, 43 minutes ago -
Terabyte update 2025
by
Will Fastie
7 hours, 3 minutes ago -
Migrating from Windows 10 to Windows 11
by
Susan Bradley
16 minutes ago -
Lost sound after the upgrade to 24H2?
by
Susan Bradley
1 day ago -
How to move 10GB of data in C:\ProgramData\Package Cache ?
by
Alex5723
1 hour, 25 minutes ago -
Plugged in 24-7
by
CWBillow
10 hours, 54 minutes ago -
Netflix, Apple, BofA websites hijacked with fake help-desk numbers
by
Nibbled To Death By Ducks
1 day, 14 hours ago -
Have Copilot there but not taking over the screen in Word
by
CWBillow
1 day, 11 hours ago -
Windows 11 blocks Chrome 137.0.7151.68, 137.0.7151.69
by
Alex5723
3 days, 5 hours ago -
Are Macs immune?
by
Susan Bradley
1 day, 3 hours ago -
HP Envy and the Function keys
by
CWBillow
2 days, 12 hours ago -
Microsoft : Removal of unwanted drivers from Windows Update
by
Alex5723
6 hours, 14 minutes ago -
MacOS 26 beta 1 dropped support for Firewire 400/800
by
Alex5723
3 days, 16 hours ago -
Unable to update to version 22h2
by
04om
1 day, 1 hour ago -
Windows 11 Insider Preview Build 26100.4482 (24H2) released to Release Preview
by
joep517
4 days ago -
Windows 11 Insider Preview build 27881 released to Canary
by
joep517
4 days ago -
Very Quarrelsome Taskbar!
by
CWBillow
3 days, 10 hours ago -
Move OneNote Notebook OFF OneDrive and make it local
by
CWBillow
4 days, 13 hours ago -
Microsoft 365 to block file access via legacy auth protocols by default
by
Alex5723
4 days, 1 hour ago -
Is your battery draining?
by
Susan Bradley
7 hours, 53 minutes ago -
The 16-billion-record data breach that no one’s ever heard of
by
Alex5723
1 day, 1 hour ago -
Weasel Words Rule Too Many Data Breach Notifications
by
Nibbled To Death By Ducks
4 days, 17 hours ago -
Windows Command Prompt and Powershell will not open as Administrator
by
Gordski
19 hours, 23 minutes ago -
Intel Management Engine (Intel ME) Security Issue
by
PL1
4 days, 1 hour ago -
Old Geek Forced to Update. Buy a Win 11 PC? Yikes! How do I cope?
by
RonE22
3 days, 18 hours ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.