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.
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
This could very easily be turned into a user-defined-function. Hope this helps.
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
We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel
Which adblocker are you using?
Disable AdBlock
Follow these easy steps to disable AdBlock
1)Click on the icon in the browser’s toolbar. 2)Click on the icon in the browser’s toolbar. 2)Click on the "Pause on this site" option.
Go back
Disable AdBlock Plus
Follow these easy steps to disable AdBlock Plus
1)Click on the icon in the browser’s toolbar. 2)Click on the toggle to disable it for "mrexcel.com".
Go back
Disable uBlock Origin
Follow these easy steps to disable uBlock Origin
1)Click on the icon in the browser’s toolbar. 2)Click on the "Power" button. 3)Click on the "Refresh" button.
Go back
Disable uBlock
Follow these easy steps to disable uBlock
1)Click on the icon in the browser’s toolbar. 2)Click on the "Power" button. 3)Click on the "Refresh" button.