+ Reply to Thread
Results 1 to 6 of 6

Hide "x" number of worksheets

  1. #1
    Registered User
    Join Date
    12-05-2007
    Location
    Oklahoma
    MS-Off Ver
    2003, 2007
    Posts
    22

    Hide "x" number of worksheets

    I use a various number of workbooks that I need this to work on. The first 2 worksheets are summary worksheets and after that there is a worksheet for each day of the month. As each week passes I need to hide the 6 worksheets for the previous week (mon-sat). I would normally be able to hide worksheets with a macro using the names, but the different tabs are named for each day of the month. Is there a way to make a macro to skip the first 2 worksheets and hide the next 6? Or maybe a macro where you could hide 6 sheets starting from the current worksheet selected? Any help provided will be greatly appreciated.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Hide "x" number of worksheets

    Try this
    Please Login or Register  to view this content.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    12-05-2007
    Location
    Oklahoma
    MS-Off Ver
    2003, 2007
    Posts
    22

    Re: Hide "x" number of worksheets

    That sorta does the trick. That hides all the worksheets past the first 2, but I am looking to only hide the first 6 worksheets after the 1st 2. That's more progress than I was able to get. Thanks so much for your help!

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Hide "x" number of worksheets

    Maybe ...
    Please Login or Register  to view this content.
    Entia non sunt multiplicanda sine necessitate

  5. #5
    Registered User
    Join Date
    12-05-2007
    Location
    Oklahoma
    MS-Off Ver
    2003, 2007
    Posts
    22

    Re: Hide "x" number of worksheets

    Unfortunately that did not do anything to any of the sheets

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Hide "x" number of worksheets

    I dunno about that. Post a workbook that demonstrates.

+ 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