BULK Hiding and un-Hiding TABS

walt1122

Active Member
Joined
Jun 6, 2002
Messages
318
Hi All, Just trying to figure out how I can get back all hidden worksheets at once. Sure I can "group" them and HIDE them but I can only do the un-Hide one at a time. I have a workbook that has tons and tons of TABs and I want to be able to have most of them hidden most of the time and just have a macro? that un-hides them if I need to see a few of them and don't want to do the one-at-a-time thing. Any ideas!

thanks

Walt
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.

lenze

Legend
Joined
Feb 18, 2002
Messages
13,690
Some code like this in a module should work

Sub unhide()
Dim ws As Worksheet
For Each ws In Sheets
If ws.Visible = xlSheetHidden Then ws.Visible = xlSheetVisible
Next
End Sub
 

Forum statistics

Threads
1,143,923
Messages
5,721,559
Members
422,370
Latest member
A Nonomus

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top