Error Checking in Excel
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 8 of 8

Thread: hiding all sheets

  1. #1
    Board Regular
    Join Date
    Mar 2002
    Location
    Philadelphia
    Posts
    100
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    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. #2
    Board Regular
    Join Date
    Apr 2002
    Location
    Minnesota
    Posts
    821
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    You can hide the entire workbook with
    Windows - Hide.

  3. #3
    Board Regular
    Join Date
    Feb 2002
    Location
    Huntington Beach, CA USA
    Posts
    327
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    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. #4
    Board Regular zacemmel's Avatar
    Join Date
    Apr 2002
    Location
    Redmond, WA
    Posts
    636
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Unplug the monitor!

  5. #5
    MrExcel MVP
    Join Date
    Feb 2002
    Location
    Christchurch New Zealand
    Posts
    1,030
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    I agree with zac unplug the monitor

  6. #6
    Legend NateO's Avatar
    Join Date
    Feb 2002
    Location
    Minneapolis, Mn, USA
    Posts
    9,700
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    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.

    _________________
    Cheers, NateO

    [ This Message was edited by: NateO on 2002-05-06 16:00 ]

  7. #7
    Board Regular
    Join Date
    Feb 2002
    Location
    Huntington Beach, CA USA
    Posts
    327
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    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. #8
    MrExcel MVP
    Join Date
    Feb 2002
    Location
    Bogota, Colombia
    Posts
    11,959
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    You can hide all sheets by making the workbook and AddIn... or, by hiding the workbook.
    Regards,

    Juan Pablo González
    http://www.juanpg.com

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •