Solved

Keyboard shortcut for showing/hiding Excel worksheet tabs

Posted on 2013-12-29
4
2,559 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
ID: 39745235
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
ID: 39745574
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
ID: 39745707
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
ID: 39784258
Great help. Thanks.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Approximate matching with VLOOKUP and MATCH seems to me to be a greatly under-used technique, and one which is vital for getting good performance out of large lookups. Until recently I would always have advised using an exact match for simplicity an…
This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

867 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

20 Experts available now in Live!

Get 1:1 Help Now