+ Reply to Thread
Results 1 to 5 of 5

Showing hidden tabs with a button, then, auto hides when de-selected

  1. #1
    Registered User
    Join Date
    02-05-2020
    Location
    Texas, U.S.A.
    MS-Off Ver
    2016
    Posts
    33

    Showing hidden tabs with a button, then, auto hides when de-selected

    Good day to you!

    First of all, I hope everyone is staying safe amidst all the turmoil and pandemic happening in our blue planet. I am basically a newbie on VBA but, I understand the concept of capabilities of this feature as to what it can bring to our spreadsheets. I would like to ask for help regarding a spreadsheet of mine. On sheet 1 there are three buttons, and the goal is for those buttons to show hidden tabs (That are hidden) corresponding to their button name. If I click "Show Tab 1" button, it should show the hidden tab "Tab 1" and when de-selected, I would like for that tab to auto hide himself. I am attaching the sample here.

    Thank you for your help in advance, and again, stay safe!
    Attached Files Attached Files
    Last edited by Buttertoasting; 06-05-2020 at 03:07 PM.

  2. #2
    Valued Forum Contributor
    Join Date
    11-04-2018
    Location
    Denpasar
    MS-Off Ver
    Excel 2010
    Posts
    777

    Re: Showing hidden tabs with a button, then, auto hides when de-selected

    Maybe something like this ?

    Put the below code in Sheet1 module:
    Please Login or Register  to view this content.
    And

    Put the below code in Sheet Tab 1 module:
    Please Login or Register  to view this content.
    Put the below code in Sheet Tab 2 module:
    Please Login or Register  to view this content.
    Put the below code in Sheet Tab 3 module:
    Please Login or Register  to view this content.
    Last edited by karmapala; 06-05-2020 at 02:06 PM.

  3. #3
    Registered User
    Join Date
    02-05-2020
    Location
    Texas, U.S.A.
    MS-Off Ver
    2016
    Posts
    33

    Re: Showing hidden tabs with a button, then, auto hides when de-selected

    Hi Karmapala!

    Thank you for your response! I will be incorporating this codes in a bit and will let you know!

  4. #4
    Registered User
    Join Date
    02-05-2020
    Location
    Texas, U.S.A.
    MS-Off Ver
    2016
    Posts
    33

    Re: Showing hidden tabs with a button, then, auto hides when de-selected

    Hey Karmapala!

    it worked like a charm! Thank you so much!

  5. #5
    Valued Forum Contributor
    Join Date
    11-04-2018
    Location
    Denpasar
    MS-Off Ver
    Excel 2010
    Posts
    777

    Re: Showing hidden tabs with a button, then, auto hides when de-selected

    You're welcome, Buttertoasting.
    Glad I can help

+ 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. Command Button to open hidden sheet and close when de- selected
    By Chris1976 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-30-2020, 03:34 PM
  2. Hyperlinking to hidden tabs - hidden tabs unhide / hide automatically.
    By jexcelio in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 10-31-2016, 02:42 AM
  3. Entire chart hides when one row is hidden
    By sslaughing in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 06-30-2015, 01:09 PM
  4. [SOLVED] Combo box that hides all rows except for selected value
    By svalentine91 in forum Excel General
    Replies: 2
    Last Post: 11-21-2013, 02:55 PM
  5. VBA that hides columns based on dates to and from in selected cells
    By dmcdonough55032 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-21-2012, 06:40 PM
  6. Hide/Show Menus/Tool Bars- Hides Tabs
    By MrBill in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-14-2010, 12:42 PM
  7. Auto Color Sheet tabs with Button
    By KennyE in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-09-2008, 02:47 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