+ Reply to Thread
Results 1 to 2 of 2

Hide & Unhide Multiple Sheets based on different cell values

  1. #1
    Registered User
    Join Date
    11-20-2013
    Location
    Las Vegas, NV
    MS-Off Ver
    Excel 2010
    Posts
    64

    Hide & Unhide Multiple Sheets based on different cell values

    Hello,

    I have a workbook with 6 sheets in total that look like forms we can print out. For the most part, I just need to use 3 of the sheets (Each with 25 lines of data). In the event I fill up all 25 lines, I want the corresponding sheet 2 to unhide so the user can start filling up that sheet. Since I already have another Worksheet_change in each sheet, I was hoping I could have some kind of data worksheet that would do all the counting for each worksheet, and based on the values in different cells, that code would auto hide and unhide the worksheets that those values correspond to.

    So, say I have worksheets:

    Printers
    Printers2
    Toners
    Toners2
    Computers
    Computers2

    The values in worksheet "Data," cell B2 counts the rows of data in worksheet "Printers" and tells me how many lines of data have been entered. If the Number is >=25, then worksheet "Printers2" is visible
    Also, if the the values in worksheet "Data," cell B3 counts the rows of data in worksheets "Toners" and the value is >=25, then it would unhide "worksheet "Toners2."
    etc.

    I found something like this, but it only works for 1 value and hide/unhiding 1 sheet.

    Please Login or Register  to view this content.
    If someone can point me in the right direction, I could use some help.

  2. #2
    Registered User
    Join Date
    09-13-2012
    Location
    Queensland
    MS-Off Ver
    Excel 2007
    Posts
    36

    Re: Hide & Unhide Multiple Sheets based on different cell values

    wasn't too clear exactly what you needed

    here is some generic code below, just update terms in If statement to whatever restrictions you need

    Please Login or Register  to view this content.
    Last edited by bharbir; 07-19-2016 at 02:50 AM.

+ 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. HIDE/UNHIDE Rows based on cell value in multiple sheets.
    By yatin1964 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-06-2015, 12:29 AM
  2. [SOLVED] Hide and Unhide rows on multiple sheets based on a validation list on a single sheet
    By bbarth in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 04-30-2015, 02:10 PM
  3. hide and unhide sheets based on a cell value
    By ccsmith in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-28-2014, 07:25 AM
  4. Replies: 1
    Last Post: 10-02-2013, 08:08 PM
  5. hide/unhide rows based on multiple cell values
    By saninmelbourne in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-20-2012, 06:45 PM
  6. Need Help with Macro to Hide/Unhide certain sheets based on number value in a cell
    By PizzaEngineer in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-09-2012, 02:23 PM
  7. Hide/Unhide Command Button based on multiple cell values
    By dagindi in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-05-2011, 09:03 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