+ Reply to Thread
Results 1 to 4 of 4

Thread: Unhide all sheets with value in cell A1

  1. #1
    Forum Contributor
    Join Date
    12-16-2004
    Posts
    101

    Unhide all sheets with value in cell A1

    I have found many threads regarding macros to unhide sheets, but they haven't provided an answer for my question. I have a workbook with more than 100 sheets. In cell A1 of all the sheets is a value. I need a macro to unhide all sheets where cell A1 has a value. Any suggestions?
    Last edited by CJ-22; 02-14-2012 at 03:45 PM.

  2. #2
    Forum Guru TMShucks's Avatar
    Join Date
    07-15-2010
    Location
    Manchester, England
    MS-Off Ver
    MSO 2003 & 2007
    Posts
    6,230

    Re: Unhide all sheets with value in cell A1

    Sub UnhideSheets()
    
    Dim sht As Worksheet
    
    For Each sht In Sheets
        If sht.Range("A1") <> "" Then
            sht.Visible = True
        End If
    Next 'sht
    
    End Sub

    Regards, TMS

  3. #3
    Forum Contributor
    Join Date
    12-16-2004
    Posts
    101

    Re: Unhide all sheets with value in cell A1

    Sorry for the late response, but that did the trick. Thanks for the help.

  4. #4
    Forum Guru TMShucks's Avatar
    Join Date
    07-15-2010
    Location
    Manchester, England
    MS-Off Ver
    MSO 2003 & 2007
    Posts
    6,230

    Re: Unhide all sheets with value in cell A1

    You're welcome.

+ 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.2.0