How to detect if sheet is hidden?

H

hstijnen

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
 
B

Bob Phillips

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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top