+ Reply to Thread
Results 1 to 4 of 4

Hiding worksheets based on cell result

  1. #1
    Registered User
    Join Date
    10-02-2003
    Location
    East Midlands, UK
    MS-Off Ver
    MS Office Professional Plus 2016
    Posts
    40

    Hiding worksheets based on cell result

    I have the following worksheets in Excel 2003:

    Who Are You
    Your Info Needs
    Managing Records
    Info Access & Retrieval
    FOI, EIR & DPA
    Other Comments

    They form a questionnaire about information management FYI. I have a routine that totals what percentage of each sheet is completed. Using an if statement, I then assign a value of 0.166666666666666 to that sheet, and from there can calculate what percentage of the workbook is complete (0.166666666666666% * 6 =100%)

    I would like to hide all but the first sheet until the 0.166666666666666 is achieved on that first sheet, then all but the first and the second until the 0.166666666666666 is achieved on the second and so on - i.e. until each sheet is completed, all subsequent sheets are hidden.

    Can I adapt the following for hiding rows to sort this? If so, how?

    Please Login or Register  to view this content.
    Thanks for taking a look.
    Last edited by VBA Noob; 12-19-2006 at 04:23 PM.

  2. #2
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    If the cell that you assign the 0.166666666666666 value to is a formula then you will will be using a Worksheet_Calculate event macro

    Please Login or Register  to view this content.
    Last edited by VBA Noob; 12-19-2006 at 04:22 PM.

  3. #3
    Registered User
    Join Date
    10-02-2003
    Location
    East Midlands, UK
    MS-Off Ver
    MS Office Professional Plus 2016
    Posts
    40
    Thanks!

    That seems to work fine for one sheet; it hides all other sheets until the 0.16666666666666 is achieved, but then it shows all of the sheets. I only want it to show the next sheet. That next sheet will also have a cell which will use an IF to put 0.16666666666666 into a cell when all questions have been completed, at which point the next cell should become apparent etc.

    I also have an intro sheet (called 'Intro') that I wish to remain unhidden all the time.

    Thanks!

  4. #4
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    PLEASE USE TAGS WHEN ENTERING CODE !!!!


    Oops slightly miss read you 1st post

    Here are 2 options

    use 1 of these 2 on each worksheet module - change sheet names as required
    Please Login or Register  to view this content.

+ 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