#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
QUESTION-MARK
 
Posts: n/a
Default Hidden Sheets

I was given a workbook that contains about 50 sheets. All but 3 are
hidden. Is there an easy way to unhide a lot of sheets at the same
time without have to do each one at a time?

Any help is greatly appreciated!!!

Mark

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
John Michl
 
Posts: n/a
Default Hidden Sheets

A simple macro would do the trick. Put the following into a VBA module
and run it.

Sub UnHideSheets()
For Each sh In Worksheets
sh.Visible = True
Next sh
End Sub

- John

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
QUESTION-MARK
 
Posts: n/a
Default Hidden Sheets

This worked perfect once I figured out how to create a VBA module.
Obvisouly writing the script that you gave me was the hard part and I
appreciate it immensely!! Thank you!

How do I create a toolbar button for the macro?

Mark

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
John Michl
 
Posts: n/a
Default Hidden Sheets

Try:
View Toolbars Customize Commands tab Macro

Then drag the smiley face to you toolbar and drop it between other
icons.

Click on it once and assign it to the sheets macro.

I don't add many macros to toolbars so there are probably some other
tricks you'll need to know but this should get you started.

Note if you are going to use this macro frequently, you should copy it
to you Personal.xls file so it is always available.

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
QUESTION-MARK
 
Posts: n/a
Default Hidden Sheets

Excellent. Thank you for the information.

Mark



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Print Array for hidden sheets using VBA Ant Excel Discussion (Misc queries) 1 March 27th 06 11:24 AM
Macro and hidden sheets Metallo Excel Discussion (Misc queries) 7 January 19th 06 09:33 AM
Unhide hidden sheets Minos Excel Discussion (Misc queries) 1 November 25th 05 05:07 PM
Open hidden sheets from a drop down list selection Ant Excel Discussion (Misc queries) 3 October 7th 05 10:01 AM
Hyperlinks With Workbook With Hidden Sheets MPB Excel Discussion (Misc queries) 0 April 27th 05 05:30 PM


All times are GMT +1. The time now is 11:12 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"