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, 1 month 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
-
Speeding up 11’s search
by
Susan Bradley
2 hours, 45 minutes ago -
HP Pavilion Will Not Wake Up After Being Idle for Longer Period
by
WSwalterwood44
2 hours, 4 minutes ago -
Make a Windows 11 Local Account Passwordless
by
Drcard:))
5 hours, 31 minutes ago -
Ubuntu 25.04 (Plucky Puffin)
by
Alex5723
13 hours, 4 minutes ago -
24H2 fixed??
by
CWBillow
2 hours, 33 minutes ago -
Uninstalr Updates
by
jv16
18 hours, 13 minutes ago -
Apple zero days for April
by
Susan Bradley
23 hours, 37 minutes ago -
CVE program gets last-minute funding from CISA – and maybe a new home
by
Nibbled To Death By Ducks
1 day, 5 hours ago -
Whistleblower describes DOGE IT dept rumpus at America’s labor watchdog
by
Nibbled To Death By Ducks
1 day, 16 hours ago -
Seeing BSOD’s on 24H2?
by
Susan Bradley
23 hours, 52 minutes ago -
TUT For Private Llama LLM, Local Installation and Isolated from the Internet.
by
bbearren
1 day, 7 hours ago -
Upgrade from Windows 10 to 11
by
Holdsworth8
2 days, 1 hour ago -
Microsoft : AI-powered deception: Emerging fraud threats and countermeasures
by
Alex5723
2 days, 4 hours ago -
0patch
by
WSjcgc50
1 day, 5 hours ago -
Devices might encounter blue screen exception with the recent Windows updates
by
Susan Bradley
1 day, 21 hours ago -
Windows 11 Insider Preview Build 22631.5261 (23H2) released to Release Preview
by
joep517
2 days, 7 hours ago -
Problem opening image attachments
by
RobertG
2 days, 9 hours ago -
advice for setting up a new windows computer
by
routtco1001
2 days, 23 hours ago -
It’s Identity Theft Day!
by
Susan Bradley
1 hour, 24 minutes ago -
Android 15 require minimum 32GB of storage
by
Alex5723
3 days, 4 hours ago -
Mac Mini 2018, iPhone 6s 2015 Are Now Vintage
by
Alex5723
3 days, 4 hours ago -
Hertz says hackers stole customer credit card and driver’s license data
by
Alex5723
3 days, 5 hours ago -
Firefox became sluggish
by
Rick Corbett
21 hours, 34 minutes ago -
Windows 10 Build 19045.5794 (22H2) to Release Preview Channel
by
joep517
3 days, 9 hours ago -
Windows 11 Insider Preview Build 22635.5235 (23H2) released to BETA
by
joep517
3 days, 9 hours ago -
A Funny Thing Happened on the Way to the Forum
by
bbearren
2 days, 6 hours ago -
Download speeds only 0.3Mbps after 24H2 upgrade on WiFi and Ethernet
by
John
3 hours, 16 minutes ago -
T-Mobile 5G Wireless Internet
by
WSmmi16
2 days, 7 hours ago -
Clock missing above calendar in Windows 10
by
WSCape Sand
8 hours, 59 minutes ago -
Formula to Calculate Q1, Q2, Q3, or Q4 of the Year?
by
WSJon5
4 days 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.