+ Reply to Thread
Results 1 to 8 of 8

Displaying (Unhiding) All Worksheets

  1. #1
    Forum Contributor
    Join Date
    09-29-2011
    Location
    ɹǝpun uʍop
    MS-Off Ver
    365
    Posts
    250

    Displaying (Unhiding) All Worksheets

    Hi,

    How can I have a macro unhide (show) all hidden (including xlveryhidden) worksheets, no matter what they're called?


    Cheers.
    Last edited by EdWoods; 10-17-2013 at 08:41 PM.

  2. #2
    Forum Contributor
    Join Date
    06-24-2013
    Location
    New Zealand
    MS-Off Ver
    Excel 2016
    Posts
    124

    Re: Displaying (Unhiding) All Worksheets

    Hi mate.

    Just a thought.... you could use a list box to show all sheet tabs in a work book then go something like this:
    Worksheets (listbox.value).Visible = True

    I have not tested this, but mix it up a bit
    There is most likely an easier way, but I find the hard and complicated ways are more fun

    Cheers
    Dan

  3. #3
    Forum Contributor
    Join Date
    09-29-2011
    Location
    ɹǝpun uʍop
    MS-Off Ver
    365
    Posts
    250

    Re: Displaying (Unhiding) All Worksheets

    Thanks Dan, but I really wanted it to do it automatically (in the background) without having to specify what sheets to unhide (just all of them).

    Cheers.

  4. #4
    Forum Contributor
    Join Date
    06-24-2013
    Location
    New Zealand
    MS-Off Ver
    Excel 2016
    Posts
    124

    Re: Displaying (Unhiding) All Worksheets

    Would you want to look at a Workbook_Open Event?
    This would mean that when the workbook opens it runs the code without any input required.

  5. #5
    Forum Contributor
    Join Date
    09-29-2011
    Location
    ɹǝpun uʍop
    MS-Off Ver
    365
    Posts
    250

    Re: Displaying (Unhiding) All Worksheets

    Thanks again Dan.

    I have no problem initiating the macro to unhide the sheets. I just need to know the code to automatically unhide all sheets, no matter what they're called.

    Cheers.

  6. #6
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Displaying (Unhiding) All Worksheets

    Maybe:
    Please Login or Register  to view this content.
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  7. #7
    Forum Contributor
    Join Date
    06-24-2013
    Location
    New Zealand
    MS-Off Ver
    Excel 2016
    Posts
    124

    Re: Displaying (Unhiding) All Worksheets

    Ha! you bet me to it

    Here's one too. for a Workbook_open Event

    Private Sub Workbook_Open()
    Dim Sheet As Worksheet
    For Each Sheet In ActiveWorkbook.Worksheets
    Sheet.Visible = xlSheetVisible
    Next Sheet
    End Sub


    Copy this into your workbook code

  8. #8
    Forum Contributor
    Join Date
    09-29-2011
    Location
    ɹǝpun uʍop
    MS-Off Ver
    365
    Posts
    250

    Re: Displaying (Unhiding) All Worksheets

    That looks like it does it.

    Thanks.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Unhiding worksheets
    By Oldjay in forum Excel General
    Replies: 9
    Last Post: 05-23-2006, 02:40 PM
  2. Unhiding all worksheets.
    By rbanks in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-29-2005, 01:39 PM
  3. Unhiding worksheets
    By Nic7602 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-06-2005, 02:05 AM
  4. Unhiding worksheets
    By Nic7602 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-05-2005, 11:05 PM
  5. Unhiding worksheets
    By Nic7602 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-06-2005, 01:05 PM

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