Home |
Search |
Today's Posts |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Try this Frank
It will hide all sheets except Sheet1 Sub sheetunhide() For Each sh In ThisWorkbook.Sheets If sh.Name < "Sheet1" Then sh.Visible = False End If Next sh End Sub -- Regards Ron de Bruin (Win XP Pro SP-1 XL2002 SP-2) www.rondebruin.nl "Frank" wrote in message ... I know by using the following code I can un-hide all work sheets, Sub sheetunhide() For Each sh In Sheets sh.Visible = True Next sh End Sub I also want to be able to hide all sheets except a specific one, does anyone know how to do this. Thanks |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
toolbar "button" for hiding/unhiding sheets | Excel Worksheet Functions | |||
Hiding / Unhiding Sheets | Excel Discussion (Misc queries) | |||
need code for hiding/unhiding sheets using checkboxes | Excel Worksheet Functions | |||
Hiding and unhiding sheets | Excel Discussion (Misc queries) | |||
Hiding/Unhiding | Excel Worksheet Functions |