+ Reply to Thread
Results 1 to 3 of 3

Hide Worksheets when a single cell changes from 1 to 0, Unhide when value changes to 1

  1. #1
    Registered User
    Join Date
    11-08-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    2

    Question Hide Worksheets when a single cell changes from 1 to 0, Unhide when value changes to 1

    Hey Everyone,

    I am very rusty 5 years since I have written vba.

    I have workbook with 25 worksheets and I only want to show each worksheet where a 1 is populated in the summary sheet in a specified cell and for this to happen automatically when the cell value is entered by the user.

    I have written the following code and it compiles but does nothing.

    In this example the cell is A2, the summary sheet is List of Goals and the sheet to be hidden is Accomodation.

    Any help appreciated.

    Please Login or Register  to view this content.

    Moderator'note: You have to put code tags around your code. Select the code then hit the "#" sign.
    Last edited by vlady; 11-14-2012 at 08:16 PM.

  2. #2
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: Hide Worksheets when a single cell changes from 1 to 0, Unhide when value changes to 1

    It will work quite well if you create an Event in the specific sheet where the cells will contain the information. pretty much like this:
    Please Login or Register  to view this content.
    This event "Worksheet_Change" run your macro whenever a cell is changed in THAT sheet. That is exactly what you want.
    Good luck
    Pierre Leclerc
    _______________________________________________________

    If you like the help you got,
    Click on the STAR "Add reputation" icon at the bottom.

  3. #3
    Registered User
    Join Date
    11-08-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Hide Worksheets when a single cell changes from 1 to 0, Unhide when value changes to 1

    Thanks for this could not find a solution on Google anywhere

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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