+ Reply to Thread
Results 1 to 12 of 12

Hiding a sheet AFTER having clicked a Hyperlink on said sheet

  1. #1
    Registered User
    Join Date
    01-31-2023
    Location
    Redditch, England
    MS-Off Ver
    Microsoft Office Professional Plus 2021
    Posts
    6

    Hiding a sheet AFTER having clicked a Hyperlink on said sheet

    For Example.

    The main tab is named Owners_Access.
    This tab has many Hyperlinks to over 50 sheets. (They all work even if those sheets are already hidden, so no problem there).
    The Hyperlinks from the sheets back to Owners_Access all work fine.
    However...................as there are over 50 of them I do not want them all on show at the same time!
    I only need one sheet on sight at any one time.
    Question is:
    "Can I have the Hyperlink that takes me back to the Owners_Access tab automatically HIDE that sheet?"
    Thanks.
    Last edited by Samuel Reid; 02-01-2023 at 07:21 AM.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Hiding a sheet AFTER having clicked a Hyperlink on said sheet

    How are you managing to link to a sheet that is hidden? Are you using VBA? If so you need to provide more detail about your scheme works. It would be enormously helpful to attach your file, or at least a skinny version of it with only one linked sheet.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    01-31-2023
    Location
    Redditch, England
    MS-Off Ver
    Microsoft Office Professional Plus 2021
    Posts
    6

    Re: Hiding a sheet AFTER having clicked a Hyperlink on said sheet

    Getting to the Hidden sheets is easy:

    This inside the Owners_Access tab
    Please Login or Register  to view this content.
    What's difficult is trying to apply code to the individual sheets that have Hyperlinks back to the Owners_Acces tab!
    If I end up clicking 50 Hyperlinks from the Owners Access tab ill have 50 sheets open!
    What's required is:

    Go to Owners_Access tab.
    Click on required Hyperlink to sheet.
    Look at sheet contents.
    Click on Hyperlink on that sheet that takes you back to Owners_Access tab

    THEN (CRUCIALLY) by clicking on that sheets Hyperlink you HIDE that sheet.

    This way you only have one sheet at a time open.

    P.S. I'm not interested in some of the solutions whereby they HIDE all of the other sheets in the book!
    Some other sheets need to be seen and available.
    #Any code needs to be ONLY effective in the sheet with the back to Owners__Access hyperlink.

    Cannot send you original as there is confidential info in there. But thanks for your interest.
    Last edited by 6StringJazzer; 02-01-2023 at 12:42 PM.

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Hiding a sheet AFTER having clicked a Hyperlink on said sheet

    Moderator's note: Please take the time to review our rules. There aren't many, and they are all important. Rule #2 requires code tags. I have added them for you this time because you are a new member. --6StringJazzer

  5. #5
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Hiding a sheet AFTER having clicked a Hyperlink on said sheet

    Click on Hyperlink on that sheet that takes you back to Owners_Access tab
    Where is that hyperlink located on the individual sheets? You can use a selection change event in the ThisWorkbook module but I'm not sure what happens if you hide the sheet before the link is executed. I would have to test that, but I need more info about your specific layout first.

  6. #6
    Registered User
    Join Date
    01-31-2023
    Location
    Redditch, England
    MS-Off Ver
    Microsoft Office Professional Plus 2021
    Posts
    6

    Re: Hiding a sheet AFTER having clicked a Hyperlink on said sheet

    Have you got access to the TEST Book I uploaded?

    If you look at sheet named Mr_B_Ferry you will see Hyperlink on Cell J3
    That takes you back to cell A1 on Owners_Access tab.

    The Hyperlinks from Owners_Access tab are on Cells N14 and N15

  7. #7
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Hiding a sheet AFTER having clicked a Hyperlink on said sheet

    There is no test book uploaded to any of your posts. See yellow banner at the top of the page.

  8. #8
    Registered User
    Join Date
    01-31-2023
    Location
    Redditch, England
    MS-Off Ver
    Microsoft Office Professional Plus 2021
    Posts
    6

    Re: Hiding a sheet AFTER having clicked a Hyperlink on said sheet

    Apologies.
    First time on here.
    Hopefully its now uploaded.
    Thanks.
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    01-31-2023
    Location
    Redditch, England
    MS-Off Ver
    Microsoft Office Professional Plus 2021
    Posts
    6

    Re: Hiding a sheet AFTER having clicked a Hyperlink on said sheet

    Cracked it!
    By altering all the necessary tabs to COLOR Yellow then using a button on each yellow tab attached to the following code:
    Please Login or Register  to view this content.
    Where there's a will there's a way!

    Last edited by 6StringJazzer; 02-02-2023 at 12:49 PM. Reason: please use code tags

  10. #10
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Hiding a sheet AFTER having clicked a Hyperlink on said sheet

    You made it too complicated. Just change your existing macro as shown:
    Please Login or Register  to view this content.

  11. #11
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Hiding a sheet AFTER having clicked a Hyperlink on said sheet

    Moderator's note: Please take the time to review our rules. There aren't many, and they are all important. Rule #2 requires code tags. I have added them for you this time because you are a new member. --6StringJazzer

  12. #12
    Registered User
    Join Date
    01-31-2023
    Location
    Redditch, England
    MS-Off Ver
    Microsoft Office Professional Plus 2021
    Posts
    6

    Re: Hiding a sheet AFTER having clicked a Hyperlink on said sheet

    Quote Originally Posted by 6StringJazzer View Post
    You made it too complicated. Just change your existing macro as shown:
    Please Login or Register  to view this content.
    Many Thanks!

+ 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: 1
    Last Post: 11-18-2021, 09:53 AM
  2. Hyperlink click "cell text" to next sheet and auto filter by the "same clicked text" VBA
    By determinedtoexceed in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-26-2021, 06:27 AM
  3. [SOLVED] macro creates new sheet and names it, need to create hyperlink to new sheet on main sheet
    By cjburns in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-03-2020, 11:26 AM
  4. [SOLVED] Hyperlinking to Hidden sheet, activating it, then re hiding sheet.
    By cwelsh in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-08-2019, 08:36 PM
  5. [SOLVED] Only unhide sheet when hyperlink is clicked that directs to the sheet
    By Xx7 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-12-2014, 05:38 AM
  6. Hiding row in a sheet based on cell selection in another sheet
    By akderitend in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 09-11-2013, 09:53 AM
  7. Replies: 1
    Last Post: 08-16-2013, 06:29 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