+ Reply to Thread
Results 1 to 3 of 3

Conditional sheet hide / show macro

  1. #1
    Registered User
    Join Date
    08-28-2012
    Location
    New Jersey
    MS-Off Ver
    Excel 2010
    Posts
    18

    Conditional sheet hide / show macro

    I'm trying to figure out a way to use tabular info to conditional show or hide worksheets. Say we have:

    Column H contains the worksheet name which is to be hidden / visible

    Column J contabs "Tab" if the contents of column H is a worksheet. It could be a different type of document. If it is not "Tab" then leave it alone.

    Column M contains "X" if it should be left inact (visible) or is blank if the worksheet names in colum H shoudl be hidden (assuming it is a worksheet based on column J = "Tab")

    This is all set up in a table.

    I want loop through the table and only show (make visible) those worksheets that are defined in the rows that have "Tab" in Col J and "X" in Col M.

    I've tried for hours but cannot get this to work.

    Can someone please help?

    Many many thanks in advance for yoour help!

    NJDevil
    Last edited by JBeaucaire; 08-29-2012 at 08:27 AM.

  2. #2
    Forum Contributor
    Join Date
    07-27-2012
    Location
    California, USA
    MS-Off Ver
    Excel 2003
    Posts
    198

    Re: Need help with a tricky conditional sheet hide / show macro

    I worked this code out in Excel 2003. Maybe it will help
    with your solution to hiding or showing worksheets based
    on two conditions. Try it out in the attached file.
    Please Login or Register  to view this content.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    08-28-2012
    Location
    New Jersey
    MS-Off Ver
    Excel 2010
    Posts
    18

    Re: Conditional sheet hide / show macro

    Sorry for the long delay in my response. I have been super super busy!


    I used your method, tweaked it a bit, and it works great!

    Thank you so much and, again, sorry for the long delay.

    NJDevil

+ 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