+ Reply to Thread
Results 1 to 3 of 3

Hide or Unhide sheets dependent on a cell value

  1. #1
    Registered User
    Join Date
    07-16-2015
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    2

    Hide or Unhide sheets dependent on a cell value

    Hi,
    I need help with some VBA code that will hide and unhide worksheets dependent on the value of a cell.
    For example, if cell A1 in worksheet AAA contains a zero, hide worksheet BBB but display worksheet CCC.
    But if cell A1 in worksheet AAA does not contain a zero, display worksheet BBB but hide worksheet CCC.
    Many thanks for any assistance.
    Steve

  2. #2
    Valued Forum Contributor
    Join Date
    04-24-2014
    Location
    United States
    MS-Off Ver
    Office 365 ProPlus
    Posts
    863

    Re: Hide or Unhide sheets dependent on a cell value

    You can use a WorkSheet Change event like below.

    Modify this as needed. This goes in the code of the sheet AAA that you are monitoring, not a Module

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    07-16-2015
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Hide or Unhide sheets dependent on a cell value

    Thanks ptmuldoon, I have to leave right now but will give this a go tomorrow!

+ 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 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
  2. How to auto hide/unhide sheets in excel workbook based on cell input?
    By bensaps10 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-02-2014, 09:57 AM
  3. [SOLVED] Hide/Unhide sheets based on text result of IF Formula in cell in another sheet
    By yukinosei in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-16-2014, 01:17 PM
  4. Replies: 1
    Last Post: 10-02-2013, 08:08 PM
  5. 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
  6. [SOLVED] Hide Unhide specific sheets with cell value
    By aksnave in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-27-2012, 06:06 PM
  7. Hide/Unhide sheets when a cell has a certain value
    By Magical in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-26-2012, 03:16 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