![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Mar 2002
Location: Philadelphia
Posts: 100
|
is there any command that hides all unhidin sheets in a workbook no matter how many sheets there are or whether there are any hidin sheets or not, thanks.
|
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Apr 2002
Location: Minnesota
Posts: 821
|
You can hide the entire workbook with
Windows - Hide. |
|
|
|
|
|
#3 |
|
Board Regular
Join Date: Feb 2002
Location: Huntington Beach, CA USA
Posts: 327
|
I'm not aware that you can hide ALL sheets
i've always been under the assumption that 1 sheet always had to be visible. James |
|
|
|
|
|
#4 |
|
Board Regular
Join Date: Apr 2002
Location: Redmond, WA
Posts: 636
|
Unplug the monitor!
|
|
|
|
|
|
#5 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Christchurch New Zealand
Posts: 1,030
|
I agree with zac unplug the monitor
|
|
|
|
|
|
#6 |
|
Legend
Join Date: Feb 2002
Location: Minneapolis, Mn, USA
Posts: 9,704
|
James is correct, under normal xl circumstances, you must have 1 unhidden sheet. You can count the number of hidden sheets with vba like the following:
Code:
Sub test()
Dim ws As Worksheet
sheetcount = 0
For Each ws In ThisWorkbook.Worksheets
If ws.Visible = False Then
sheetcount = sheetcount + 1
End If
Next ws
MsgBox ("You have " & sheetcount & " Hidden Sheet[s]")
End Sub
_________________ Cheers, NateO ![]() [ This Message was edited by: NateO on 2002-05-06 16:00 ] |
|
|
|
|
|
#7 |
|
Board Regular
Join Date: Feb 2002
Location: Huntington Beach, CA USA
Posts: 327
|
Hi bjr157,
Alt-F11>click on> Microsoft Excel Objects> click on the sheet(s) you want to hide>In the properties window>scroll down to visible and choose xlSheetHidden or xlSheetVeryHidden Don't worry about the commedians comments either, the purpose of this board is to help one another and share knowledge, but some people like to us it to practice their stand up comedy routine James _________________ [ This Message was edited by: James on 2002-05-06 16:58 ] |
|
|
|
|
|
#8 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Bogota, Colombia
Posts: 11,927
|
You can hide all sheets by making the workbook and AddIn... or, by hiding the workbook.
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|