+ Reply to Thread
Results 1 to 7 of 7

Macro for very hidden/unhide excle sheet....

  1. #1
    Registered User
    Join Date
    06-15-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    93

    Arrow Macro for very hidden/unhide excle sheet....

    Hello friends...

    I am trying to unhide /very hidden excel sheet based of value in Sheet 1 (A1).

    For example:
    If Sheet 1 (A1) = 1, then Sheet 2 shall be unhide...
    If Sheet 1 (A1) = 2, then Sheet 3 shall be unhide...
    and
    If Sheet 1 (A1) = 0 unhidden sheets shall be very hidden......

    Thanks in advance.....

    Jay

  2. #2
    Forum Expert millz's Avatar
    Join Date
    08-14-2013
    Location
    Singapore
    MS-Off Ver
    Excel, Access 2016
    Posts
    1,694

    Re: Macro for very hidden/unhide excle sheet....

    Try this sample
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    06-15-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    93

    Re: Macro for very hidden/unhide excle sheet....

    Dear Millz,

    Thank you very much for the macro....

    I tried it and found work nicely....
    but there is a little problem....
    when Sheet 1 (A1) value reduced from 3 to 2, still the Sheet 3 shown... when Sheet 1 (A1) value reduced to 2 to 1, still Sheet 2 and Sheet 3 shown....
    I wish that when value in A1 is reduced the corresponding sheet shall be very hidden.

  4. #4
    Forum Expert millz's Avatar
    Join Date
    08-14-2013
    Location
    Singapore
    MS-Off Ver
    Excel, Access 2016
    Posts
    1,694

    Re: Macro for very hidden/unhide excle sheet....

    Quote Originally Posted by jaysakle View Post
    I wish that when value in A1 is reduced the corresponding sheet shall be very hidden.
    Well, that's very different from what you said in the first post.
    Change the worksheet code to this:
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    06-15-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    93

    Re: Macro for very hidden/unhide excle sheet....

    Dear Millz

    Thanks....a lot....

    1. It works only up to 7 sheets....i need more up to 100 sheets....
    2. Value starts in A1 is from 2...means... if 2 is entered in A1 sheet 2 opens.....the value starts from 1...means if 1 is entered in A1 sheet 2 shall be open/show....

    Thanks in advance....

  6. #6
    Forum Expert millz's Avatar
    Join Date
    08-14-2013
    Location
    Singapore
    MS-Off Ver
    Excel, Access 2016
    Posts
    1,694

    Re: Macro for very hidden/unhide excle sheet....

    Quote Originally Posted by jaysakle View Post
    1. It works only up to 7 sheets....i need more up to 100 sheets....
    From what I see... it should be working for any amount of sheets.
    Quote Originally Posted by jaysakle View Post
    2. Value starts in A1 is from 2...means... if 2 is entered in A1 sheet 2 opens.....the value starts from 1...means if 1 is entered in A1 sheet 2 shall be open/show....
    Yes I sort of made it count together with the sheet number, since Sheet 1 (where you enter the value in A1) should always be shown. But if you want the second sheet to start as "1", here it is. Attached example is working for 100 worksheets.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    06-15-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    93

    Re: Macro for very hidden/unhide excle sheet....

    Quote Originally Posted by millz View Post
    From what I see... it should be working for any amount of sheets.

    Yes I sort of made it count together with the sheet number, since Sheet 1 (where you enter the value in A1) should always be shown. But if you want the second sheet to start as "1", here it is. Attached example is working for 100 worksheets.


    Thanks....thanks...thanks....work nicely and up to mark....

+ 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. Replies: 3
    Last Post: 12-13-2013, 03:37 PM
  2. Have a series of hidden columns, I want a macro that will unhide just one
    By Skeeta in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-14-2012, 04:02 PM
  3. Assigning Object a Macro to unhide hidden tabs with specific text
    By alorro3 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-02-2012, 12:26 PM
  4. How can I find/unhide hidden excel sheet tabs on a worksheet?
    By magician in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-13-2012, 05:37 PM
  5. Unhide hidden sheet?
    By evek in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-03-2010, 03:41 PM

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