+ Reply to Thread
Results 1 to 14 of 14

How To Hyperlink to a Hidden Worksheet - Excel VBA

  1. #1
    Registered User
    Join Date
    05-19-2014
    Posts
    11

    How To Hyperlink to a Hidden Worksheet - Excel VBA

    Good day to all,
    I have an issue that I hope someone here can help me resolve it. I looked at other similar threads but none seem to solve my issue. The difference between other threads and my problem is that I am using a "Symbol" for all my hyperlinks to go to a specific hidden sheet. How do I define each symbol in a different cell to link to it's related hidden sheet? Please see attached image to understand the issue better.

    TYIAMenu Page.JPG

  2. #2
    Valued Forum Contributor
    Join Date
    10-12-2021
    Location
    CT
    MS-Off Ver
    365
    Posts
    462

    Re: How To Hyperlink to a Hidden Worksheet - Excel VBA

    A simple macro will accomplish this... not sure about hyperlinking. I've never looked into that.

    right-click the image (little orange triangles) and assign it a macro:


    Edit: I see they are not images but characters... you could draw in little clear boxes behind the triangles and assign a macro to that instead. There are ways to click on a cell and perform an action but I think a shape is easier.

    Please Login or Register  to view this content.
    Last edited by carlmon; 05-12-2022 at 03:35 PM.

  3. #3
    Registered User
    Join Date
    05-19-2014
    Posts
    11

    Re: How To Hyperlink to a Hidden Worksheet - Excel VBA

    Hi Carlmon

    Ok, I just saw your full code. I will give it a try and let you know.

    Thank you

  4. #4
    Valued Forum Contributor
    Join Date
    10-12-2021
    Location
    CT
    MS-Off Ver
    365
    Posts
    462

    Re: How To Hyperlink to a Hidden Worksheet - Excel VBA

    Sounds good. If you like this approach, I'll write you a code that hides the cell when selecting the main tab.

    P.S I've worked in an aerospace nut/bolt manufacturing plant... I hope you like your job more than I liked mine! lol

  5. #5
    Registered User
    Join Date
    05-19-2014
    Posts
    11

    Re: How To Hyperlink to a Hidden Worksheet - Excel VBA

    I think I will go with your code. I could import the triangle as an image and use your code that way. I'll appreciate if you also give me the code to hide the sheet.
    Thank you very much for your help

  6. #6
    Registered User
    Join Date
    05-19-2014
    Posts
    11

    Re: How To Hyperlink to a Hidden Worksheet - Excel VBA

    HTML Code: 
    I know exactly what you mean. Where I work, those who assigned part numbers to each part did a terrible job. It is a nightmare to organize them properly

  7. #7
    Valued Forum Contributor
    Join Date
    10-12-2021
    Location
    CT
    MS-Off Ver
    365
    Posts
    462

    Re: How To Hyperlink to a Hidden Worksheet - Excel VBA

    Quote Originally Posted by Adsk2007 View Post
    HTML Code: 
    I know exactly what you mean. Where I work, those who assigned part numbers to each part did a terrible job. It is a nightmare to organize them properly
    Yeah, my place had over 800 employees & ran 24/7, 7 days a week, 365 --- things got chaotic..

    Give this code(below) a go; just make sure you put it on the Main sheet code found in the project explorer or by right-clicking the tab at the bottom. I didn't debug it, but I will.

    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    05-19-2014
    Posts
    11

    Re: How To Hyperlink to a Hidden Worksheet - Excel VBA

    Thank you, I will give it a try as soon as I get home and let you know by tomorrow.

    Best Regards

  9. #9
    Registered User
    Join Date
    05-19-2014
    Posts
    11

    Re: How To Hyperlink to a Hidden Worksheet - Excel VBA

    Your code works like a charm. One small error i found in your second code. You didn't end the IF statement. Below is what I changed it to and It worked fine.

    Thank you for all your help

    Please Login or Register  to view this content.

  10. #10
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,481

    Re: How To Hyperlink to a Hidden Worksheet - Excel VBA

    Hi there,

    Here's an approach which allows you to keep sheetnames out of your code, and uses only a single common routine for all of the sheet selection buttons in the workbook.

    The destination sheetnames are entered in the cells immediately to the left of the sheet selection buttons. The same process is used for the "Return To Menu" button on each of the worksheets. The columns which contain the sheet names (C for the Menu worksheet and A for each of the other worksheets) may be hidden if required.

    The attached workbook uses the following code:

    Please Login or Register  to view this content.

    Hope this helps - please let me know how you get on.

    Regards,

    Greg M
    Attached Files Attached Files
    Last edited by Greg M; 05-12-2022 at 04:53 PM. Reason: Workbook attached

  11. #11
    Registered User
    Join Date
    05-19-2014
    Posts
    11

    Re: How To Hyperlink to a Hidden Worksheet - Excel VBA

    Hi Greg

    Thank you for helping with this issue. I will try the code and let you know

    Regards

  12. #12
    Registered User
    Join Date
    05-19-2014
    Posts
    11

    Re: How To Hyperlink to a Hidden Worksheet - Excel VBA

    Greg,

    Wow, that is also a great way of doing it.

    Regards

  13. #13
    Valued Forum Contributor
    Join Date
    10-12-2021
    Location
    CT
    MS-Off Ver
    365
    Posts
    462

    Re: How To Hyperlink to a Hidden Worksheet - Excel VBA

    @Greg

    My code only references the sheet name of the MAIN sheet that he won't change... it doesn't matter what the rest of the sheets are called - they will be hidden...

    Apologies, I see what his code does... looks good.

  14. #14
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,481

    Re: How To Hyperlink to a Hidden Worksheet - Excel VBA

    Thanks to you both for your feedback - glad you like it!

    Regards,

    Greg M

+ 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. Hyperlink to hidden sheet using a cell with the =Hyperlink formula
    By pauldonnelly16 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-23-2018, 07:53 PM
  2. Hyperlink to hidden worksheet, issue
    By luaylool in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-20-2017, 08:05 PM
  3. Keep hidden rows hidden, in a protected, filtered worksheet
    By djp630 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-04-2014, 10:22 PM
  4. Hyperlink to a hidden sheet (in the same worksheet)?
    By NameUse in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-05-2013, 12:43 PM
  5. [SOLVED] Hyperlink a cell to a hidden worksheet
    By jjin in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-08-2013, 10:04 AM
  6. Replies: 3
    Last Post: 08-08-2006, 08:10 AM
  7. Hyperlink to hidden worksheet
    By JoeleneW in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 04-11-2006, 06:20 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