Solved

Keyboard shortcut for showing/hiding Excel worksheet tabs

Posted on 2013-12-29
4
2,272 Views
Last Modified: 2014-01-15
Hello,

Does anyone know of a keyboard shortcut for showing/hiding Excel 2013 sheet tabs?
If not, does a menu or QAT shortcut exist for doing that?

The only place I can find to show or hide sheet tabs is:

File > Options > Advanced > Display options for this workbook > Show sheet tabs

Thanks
0
Comment
Question by:Steve_Brady
4 Comments
 
LVL 18

Assisted Solution

by:Raheman M. Abdul
Raheman M. Abdul earned 250 total points
Comment Utility
save the following in a macro:
--------------------------------------
Sub HideSheetTabs()
ActiveWindow.DisplayWorkbookTabs = False
End Sub

Sub ShowSheetTabs()
ActiveWindow.DisplayWorkbookTabs = True
End Sub

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

QAT dropdown -> More Commands, then choose Macros.
Select ThisWorkbook.ShowSheetTabs and click Add -> OK
Select ThisWorkbook.HideSheetTabs and click Add -> OK

You can click on Modify to change the icon of the buttons.

Click the buttons to test (show or hide).
ShowHideWorksheetTabs.xlsm
0
 
LVL 9

Expert Comment

by:dexterrajesh
Comment Utility
short-cut keys:

Alt+F+T and then under advance Alt+B to enable\disable the sheet tabs

through VBA Macro:

The following two simple VBA codes also can help you to hide or show the sheet tabs.

1. Click Developer > Visual Basic, and a new Microsoft Visual Basic for applications window will display, click Insert > Module, and then input the following codes in the module.

VBA code to hide sheet tabs:

Sub Macro()
ActiveWindow.DisplayWorkbookTabs = False
End Sub

VBA code to show sheet tabs:

Sub Macro()
ActiveWindow.DisplayWorkbookTabs = True
End Sub

hope this helps
0
 
LVL 85

Accepted Solution

by:
Rory Archibald earned 250 total points
Comment Utility
I would use one macro that simply toggles the tabs on and off:

Sub ShowHideTabs()
With ActiveWindow
   .DisplayWorkbookTabs = Not .DisplayWorkbookTabs
End With
End Sub

Open in new window

0
 

Author Closing Comment

by:Steve_Brady
Comment Utility
Great help. Thanks.
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Introduction While answering a recent question (http:/Q_27311462.html), I created an alternative function to the Excel Concatenate() function that you might find useful.  I tested several solutions and share the results in this article as well as t…
Convert between Excel file formats (.XLS, .XLSX, .XLSM) with/without macro option David Miller (dlmille) Intro Over this past Fall, I've had the opportunity to see several similar requests and have developed a couple related solutions associate…
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now