Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Unhiding worksheets 2

Status
Not open for further replies.

boottmills

Mechanical
Feb 23, 2006
90
Is there a way to unhide multiple worksheets at once as opposed to one at a time?

Boottmills
 
Replies continue below

Recommended for you

In Excel 2003 there appears to be no command available through the menus. However, I have a VBA macro as part of an "auditing" workbook that unhides all hidden worksheets:

Sub showAllSheets()
Dim sheet As Object

Application.ScreenUpdating = False

For Each sheet In ActiveWorkbook.Sheets
sheet.Visible = True
Next sheet
End Sub

With some more work you could have a similar command that would load a dialog with a selection list which would list all of the hidden worksheets and then allow you to select multiple sheets to unhide at once.
 
Hi boottmills:

Picking up from TomBarsh, ... how about unhiding say Sheet6, Sheet7, and Sheet9
Code:
Sub y_1a()
        For Each sh In Sheets(Array("Sheet6", "Sheet7", "Sheet9"))
            With sh
                .Visible = True
            End With
        Next
End Sub
Would this work for you?

Yogi Anand, D.Eng, P.E.
Energy Efficient Building Network LLC
ANAND Enterprises LLC
 
You may also install a utility like ASAP ( that'll have a menu command for it.

Cheers,
Joerd

Please see FAQ731-376 for tips on how to make the best use of Eng-Tips.
 
Sirs,

These both work fantastically! Thank you very much!

Boottmills
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor