MrExcel's Learn Excel #789 - Unhide Worksheets II

If you like this content, please consider visiting the video on YouTube and subscribe to the MrExcel Channel to show your support!
This video has been published on Jan 15, 2009.
Rather than use a custom view, Episode 789 shows how to create a 3-line macro to unhide all worksheets.

This blog is the video podcast companion to the book, Learn Excel 97-2007 from MrExcel. Download a new two minute video every workday to learn one of the 377 tips from the book!
maxresdefault.jpg


Transcript of the video:
Hey. Welcome back to the MrExcel netcast. I'm Bill Jelen.
Well, in yesterday's netcast, we talked about how frustrating it is when you have many worksheets to unhide.
You might have to choose FORMAT, SHEET, UNHIDE, and, unfortunately, you can't select all of them at once.
You have to select each one individually and then click OK.
So, yesterday, I used a CUSTOM VIEW to solve this.
Today, I'm just going to write a macro and this is usually what I do.
I'll do INSERT, MODULE, create a new macro called SUB UNHIDEALL, and we'll say, FOR EACH SH -- that's just the variable -- IN ACTIVEWORKBOOK.WORKSHEETS, SH.VISIBLE=TRUE, NEXT SH sends it back to get the next worksheet.
Basically, this is just going to unhide all the worksheets in the book.
So, you see we have 3 sheets visible here.
When I run the macro, ALT+F8, choose UNHIDEALL, click RUN, it very quickly unhides all the sheets -- so, tiny little macro, basically 3 lines of code there.
You can put that in your personal macro workbook, and maybe assign it to either an icon or a shortcut key, and you'll have 1-click access to unhide all the sheets.
Well, there you have it.
Thanks for stopping by.
We'll see you next time for another netcast from MrExcel.
 

Forum statistics

Threads
1,224,875
Messages
6,181,516
Members
453,050
Latest member
Obil

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
Back
Top