+ Reply to Thread
Results 1 to 8 of 8

hide sheets based on the cell value

  1. #1
    Registered User
    Join Date
    01-22-2013
    Location
    Poland
    MS-Off Ver
    Excel 2010
    Posts
    44

    hide sheets based on the cell value

    Hello All,

    I work on my application in Excel and I would like to implement a macro which will hide or unhide sheets based on the cell value.
    this cell value can have only two values (1 or 2).

    i was looking for information over internet, found few posts but it simply saying still it does not work...

    Please Login or Register  to view this content.
    i would like to have this marco to run continously background.


    can you support me, please?

    best regards
    Sebastian

  2. #2
    Registered User
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,164

    Re: hide sheets based on the cell value

    What are your conditions?
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Registered User
    Join Date
    01-22-2013
    Location
    Poland
    MS-Off Ver
    Excel 2010
    Posts
    44

    Re: hide sheets based on the cell value

    S25 check if another cell has a value or it is emplty.

  4. #4
    Registered User
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,164

    Re: hide sheets based on the cell value

    You need to give more details. Its not clear what you are trying to say.

  5. #5
    Registered User
    Join Date
    01-22-2013
    Location
    Poland
    MS-Off Ver
    Excel 2010
    Posts
    44

    Re: hide sheets based on the cell value

    cell S25 has a If function, checks if B1 has a text or not. if it has it shows 1 and then I would like to start macro unhiding some sheets. when s25 returns 2 I would like to hide some sheets.

    B1 cell base on validation data and Vlookup function.

    i hope now is clear.

  6. #6
    Registered User
    Join Date
    01-21-2013
    Location
    Hatfield
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: hide sheets based on the cell value

    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,164

    Re: hide sheets based on the cell value

    JeffCasey,

    Welcome to the forum.

    I have added code tags to your post. As per forum rule 3, you need to use them whenever you put any code in your post. Please add them in future. If you need more information on how to use them, check my signature below this post.

  8. #8
    Registered User
    Join Date
    01-22-2013
    Location
    Poland
    MS-Off Ver
    Excel 2010
    Posts
    44

    Re: hide sheets based on the cell value

    Dear All,

    thx for the support.

    after changes based on your comments it works.

+ 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