#1   Report Post  
Posted to microsoft.public.excel.misc
Minos
 
Posts: n/a
Default Unhide hidden sheets

I found that to unhide hidden sheets in Excel you have to do one by one or
sheet by sheet. Is there a way by which I can a select more than one sheet to
unhide and unhide them simultaneously instead of doing it one by one?


Minos
  #2   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default Unhide hidden sheets

You always have to have at least one sheet visible, but you could use code like
this:

Option Explicit
Sub UnhideAll()
Dim wks As Object
For Each wks In ActiveWorkbook.Sheets
wks.Visible = xlSheetVisible
Next wks
End Sub

Sub HideSelected()
Dim wks As Object
On Error Resume Next
For Each wks In ActiveWindow.SelectedSheets
wks.Visible = xlSheetHidden
If Err.Number < 0 Then
MsgBox wks.Name & " was not hidden"
Err.Clear
End If
Next wks
On Error GoTo 0
End Sub

The second procedure hides the sheets that are grouped--click on the first sheet
tab and ctrl-click on subsequent.


Minos wrote:

I found that to unhide hidden sheets in Excel you have to do one by one or
sheet by sheet. Is there a way by which I can a select more than one sheet to
unhide and unhide them simultaneously instead of doing it one by one?

Minos


--

Dave Peterson
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
Open hidden sheets from a drop down list selection Ant Excel Discussion (Misc queries) 3 October 7th 05 10:01 AM
Can I unhide multiple sheets at once? Brockli Excel Discussion (Misc queries) 1 February 24th 05 07:46 PM
unhide hidden window or workbook mango Excel Worksheet Functions 1 December 21st 04 09:59 AM
How do I unhide multiple sheets? ahonig Excel Worksheet Functions 3 December 14th 04 09:03 PM
Why cannot I unhide the hidden rows ? Jim Edwards Excel Discussion (Misc queries) 2 December 4th 04 04:38 PM


All times are GMT +1. The time now is 05:55 AM.

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"