How to quickly show active or selected sheets only in Excel?
If there are multiple sheets in your working workbook, and now you just want to show only the active or selected sheets and hide other sheets, how can you quickly handle it without hiding them one by one manually?
|Kutools for Excel's Split Workbok help you split all sheets from a workbook and save them as
separate workbooks, texts, csv files or pdf files.
Enable you to do smarter, faster and better
Here is a VBA code can quickly hide all sheets except the active one.
1. Press Alt + F11 keys to display Microsoft Visual Basic for Applications window.
2. Then click Insert > Module and paste below VBA to the new Module window.
VBA: Show active sheet only
Dim xSht As Object
For Each xSht In ThisWorkbook.Sheets
If xSht.Name <> ThisWorkbook.ActiveSheet.Name Then xSht.Visible = False
3. Click Run button or press F5 key to execute VBA And now only active sheet are shown, others are hidden.
If you have Kutools for Excel installed, you can quickly hide inactive sheets or unselected sheets with once click.
|Kutools for Excel, with more than 120 handy Excel functions, enhance your working efficiency and save your working time.|
After free installing Kutools for Excel, please do as below:
Active a sheet or select sheets you want to show, then click Kutools > Show/Hide > Hide Unselected Sheets. See screenshot:
Now the unselected sheets are hidden.
Tip: If you want to show all sheets, you can click Kutools > Show/Hide > Unhide All Sheets. See screenshot:
|If you are interested in this addi-in, download the 60-days free trial.|