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?
![]() |
There are isolated problems with current patches, but they are well-known and documented on this site. |
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, 2 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
-
Just got this pop-up page while browsing
by
Alex5723
11 minutes ago -
KB5058379 / KB 5061768 Failures
by
crown
8 hours, 27 minutes ago -
Windows 10 23H2 Good to Update to ?
by
jkitc
11 hours, 6 minutes ago -
At last – installation of 24H2
by
Botswana12
11 hours, 50 minutes ago -
MS-DEFCON 4: As good as it gets
by
Susan Bradley
1 hour, 28 minutes ago -
RyTuneX optimize Windows 10/11 tool
by
Alex5723
1 day ago -
Can I just update from Win11 22H2 to 23H2?
by
Dave Easley
17 hours, 22 minutes ago -
Limited account permission error related to Windows Update
by
gtd12345
1 day, 13 hours ago -
Another test post
by
gtd12345
1 day, 13 hours ago -
Connect to someone else computer
by
wadeer
1 day, 8 hours ago -
Limit on User names?
by
CWBillow
1 day, 11 hours ago -
Choose the right apps for traveling
by
Peter Deegan
1 day, 1 hour ago -
BitLocker rears its head
by
Susan Bradley
9 hours, 3 minutes ago -
Who are you? (2025 edition)
by
Will Fastie
8 hours ago -
AskWoody at the computer museum, round two
by
Will Fastie
1 day, 3 hours ago -
A smarter, simpler Firefox address bar
by
Alex5723
1 day, 23 hours ago -
Woody
by
Scott
2 days, 9 hours ago -
24H2 has suppressed my favoured spider
by
Davidhs
8 hours, 39 minutes ago -
GeForce RTX 5060 in certain motherboards could experience blank screens
by
Alex5723
2 days, 23 hours ago -
MS Office 365 Home on MAC
by
MickIver
2 days, 17 hours ago -
Google’s Veo3 video generator. Before you ask: yes, everything is AI here
by
Alex5723
3 days, 13 hours ago -
Flash Drive Eject Error for Still In Use
by
J9438
8 hours, 24 minutes ago -
Windows 11 Insider Preview build 27863 released to Canary
by
joep517
4 days, 8 hours ago -
Windows 11 Insider Preview build 26120.4161 (24H2) released to BETA
by
joep517
4 days, 8 hours ago -
AI model turns to blackmail when engineers try to take it offline
by
Cybertooth
3 days, 12 hours ago -
Migrate off MS365 to Apple Products
by
dmt_3904
3 days, 12 hours ago -
Login screen icon
by
CWBillow
3 days, 3 hours ago -
AI coming to everything
by
Susan Bradley
17 hours, 52 minutes ago -
Mozilla : Pocket shuts down July 8, 2025, Fakespot shuts down on July 1, 2025
by
Alex5723
5 days ago -
No Screen TurnOff???
by
CWBillow
42 minutes 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.