+ Reply to Thread
Results 1 to 2 of 2

How to detect if sheet is hidden?

  1. #1
    hstijnen
    Guest

    How to detect if sheet is hidden?

    Hi,

    I've a workbook with several sheets. Formula's in one sheet point to
    other sheets. Is there a way to detect, in a formula, whether the
    sheet that is pointed to is hidden or not?

    Thanks for help,

    Henk

  2. #2
    Bob Phillips
    Guest

    Re: How to detect if sheet is hidden?

    You would need a UDF to tell you, like

    Function SheetStatus(name As String)
    Select Case Worksheets(name).Visible
    Case xlSheetHidden: SheetStatus = "Hidden"
    Case xlSheetVeryHidden: SheetStatus = "Very Hidden"
    Case Else: SheetStatus = "Visible"
    End Select
    End Function


    --

    HTH

    RP
    (remove nothere from the email address if mailing direct)


    "hstijnen" <[email protected]> wrote in message
    news:[email protected]...
    > Hi,
    >
    > I've a workbook with several sheets. Formula's in one sheet point to
    > other sheets. Is there a way to detect, in a formula, whether the
    > sheet that is pointed to is hidden or not?
    >
    > Thanks for help,
    >
    > Henk




+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1