How To Hyperlink to a Hidden Worksheet - Excel VBA

Поделиться
HTML-код
  • Опубликовано: 11 сен 2024

Комментарии • 137

  • @rae_halvi6392
    @rae_halvi6392 2 года назад +1

    You just save me a thousand years of thinking how to hide and link these sheets. Thanks a lot Sir! ❤️

  • @ruwanjayasundara3113
    @ruwanjayasundara3113 Год назад +1

    Dear sir , I dont know anything about programming . BUT I DID IT. Thank you very very much Sir 🙏🙏 ( Sorry for poor English)

  • @atulbharti7880
    @atulbharti7880 7 месяцев назад

    Thank you for Explaining the VBA code.Bcz every youtube channel just copy and paste the code.I want to understand the code that how its work. A big Thanks👍

  • @TheSquirt85
    @TheSquirt85 Год назад +2

    Hi, this is a great video thank you. However I keep getting an error message that says subscript out of range. I believe it has something to do with the xlsheetvisible option. Could you advise please?

  • @librasun1478
    @librasun1478 4 года назад

    Great work! I'be been scouring several excel communities for this particular project, but because VBA is completely strange to me, I was not able to come up with success story. My first impression on instructional videos is that it is a waste of time, and 95% of the time it failed to provide me solutions. This one is such a particular instance wherein I gave up chasing for answers from forumers and switch to IVs. Such a luck I clicked your video, and Tadaah! Problem solved. Your amazing! I was able to follow the instructions, and the bubble problem in my head has just been pin-bursted with your clear and concise instructions. Continue your wonderful work and a massive thank you

  • @cemkaya889
    @cemkaya889 2 года назад

    Thank you so much for this awesome video. That was exactly what I was looking for! You are also talking so clearly and that means non-natives can also understand everything perfectly. (Like me 😝)
    Edit: Can somebody also explain how to do it if they were not cell values but TextBox values?

  • @jewelahmad4903
    @jewelahmad4903 5 лет назад +1

    Thank you so much for your Nice Explanation of VBA Macro. I want to more video for Microsoft Excel VBA Macro.👌👌👌👌

  • @gerardpaulninovergara5527
    @gerardpaulninovergara5527 6 месяцев назад

    Hi Computergaga this tutorial is perfectly fit and works for what I wanted to happen to my inventory excel.. Your the best.

    • @Computergaga
      @Computergaga  6 месяцев назад

      Great to hear it. Thank you.

  • @eastender6024
    @eastender6024 Год назад +1

    For info.
    If you have a sheet tab name with a space in between, e.g. "Daily Totals" you will need to replace the space between the words with an underscore '_'. so "DAILY TOTALS" -------> "DAILY_TOTALS", this should help with some instances of the 'Subscript out of Range' error

  • @samuelsharp2342
    @samuelsharp2342 Год назад +2

    Hi ComputerGaga, I'm getting an issue with this giving me a runtime error 9. I've got quite a few worksheets over 60 and I'm trying to use this in combination with your "Drop Down List of Hyperlinks - Excel Hyperlinks Tip" video. i'm wondering what I can do to fix this as i suspect it has something to do with the number of worksheets.

  • @ennesvi
    @ennesvi 3 месяца назад

    Thanks a lot. You made my job easy. wishing you most and more.👍

  • @mrvideos188
    @mrvideos188 Год назад

    Thank you so much , No words to say . You solved a big as I needed. Thanks again sir

  • @catminhha2994
    @catminhha2994 3 года назад

    Thank a lot so much your tutorial for VBA beginner

  • @keishrich
    @keishrich 5 лет назад +1

    Excellent tutorial. Thank you!

  • @alisonilyin7959
    @alisonilyin7959 5 лет назад +1

    That was really good - so easy to follow! Keep up the grat work!

  • @edmondcheng6889
    @edmondcheng6889 2 года назад

    Excellent tutorial - so practical and relevant. Much appreciated!!

  • @lobo9771
    @lobo9771 4 года назад

    I can't thank you enough for this - an excellent tutorial and quite easy for a VBA Beginner

  • @user-sn5lr8jx4m
    @user-sn5lr8jx4m 11 месяцев назад

    Hey, I just set this up and it works great, I was wondering if there was a way to search the hidden files from main sheet. Thanks for any help

  • @user-fy4bu5yl2h
    @user-fy4bu5yl2h 6 месяцев назад

    Hi Computergaga, thank you for the walk-through for us vba bagginers. I applied these codes on multiple sheets and they worked perfectly, however, my workbook got slower ever since I added the codes, I copy/pasted them on multiple sheets (first code for the sheets that contain the hyperlinks and the second code for the previously hidden sheets to re-hide them). I was wondering if there is a way to apply the first code on all the sheets that contain the hyperlinks to the hidden sheets without copy/pasting the code on each sheet? Same for the second code.

  • @DANTENUNEZCARRO
    @DANTENUNEZCARRO 4 года назад

    Thanks a lot for this information you are really fantastic to explain and share information in an easy way!

  • @DankDankPancake
    @DankDankPancake 3 года назад +1

    Very good tutorial! Out of all the videos I’ve watched yours was the only one the actually worked.
    However, how would I do this with a shape? I want to link shapes with text to a hidden sheet, and then hide that sheet after returning to the menu.

    • @TheGingerdevil1
      @TheGingerdevil1 3 года назад +1

      I want to do this aswell, have you found out how yet?

    • @classicjoka3878
      @classicjoka3878 3 года назад +1

      I want to know this to.

    • @DankDankPancake
      @DankDankPancake 3 года назад +1

      @@TheGingerdevil1 No, I have not figured out how to do this yet. Instead of labeling my tabs with their actual name, I’ve just numbered them so that they all fit along the bottom without having to scroll left-or-right and linked my shapes to their appropriate tabs. You can still see them but it looks cleaner than it did before.

  • @JanBolhuis
    @JanBolhuis 3 года назад

    Thank you very much. Great video, subject and explanation!

  • @reviews_kitchen
    @reviews_kitchen 3 года назад

    Hi This is great. Been looking for this everywhere, great stuff. Thank you.

  • @elnes6729
    @elnes6729 3 года назад

    Wow very nice video.
    This is what im looking for..
    You earned a subscription for that...
    Thanks

    • @Computergaga
      @Computergaga  3 года назад

      Thanks for the sub!
      And the comments 👍

  • @deepaks4516
    @deepaks4516 4 года назад +1

    while trying the link in cells, its working, but when i hyperlinked with shape(like square) its not working., suggest any comments

  • @GeneGL2814
    @GeneGL2814 4 года назад +1

    The first code didn’t work for me. The second one does but it doesn’t take me to the specific cell in the worksheet. Please help.

  • @moslemmir9185
    @moslemmir9185 2 года назад +1

    it doesn't work for me! please help me. when I click on hyper link this error appears:
    Run-time error '9':
    subscript out of range
    HELP?

  • @Arunsugath
    @Arunsugath 4 года назад

    thank you so much , no words to say .

  • @glenk-silenttakeover1315
    @glenk-silenttakeover1315 4 года назад

    Great video, simple to follow and have been able to easily replicate, I will be sure to check out your other videos! Thank you!

  • @chesterxiudus
    @chesterxiudus 3 года назад

    Amazing work, outstanding explanation and professional maneuvers

    • @Computergaga
      @Computergaga  3 года назад

      Thank you 😊

    • @chesterxiudus
      @chesterxiudus 3 года назад

      @@Computergaga I'v found your tutorial quite simple and clear, however when l follow the exact steps you did, I keep getting a message of error. I dunno if I'm missing something (which i'm sure i am) or what. so my question is: do I have to set up my excel file to certain settings before carrying out the work you did?

    • @Computergaga
      @Computergaga  3 года назад +1

      No specific settings required. Apart from macros enabled.

    • @chesterxiudus
      @chesterxiudus 3 года назад

      @@Computergaga Whenever you type "shtName" do I have to type the exact name given to the sheet l'm working on?

  • @benardn4018
    @benardn4018 2 года назад

    Thanks much for this video. Also i need to know how can i hide mutlple column, ex A,C,E,G,J by using VBA

  • @CCAFO
    @CCAFO Год назад

    This is great!

  • @yossachesed
    @yossachesed Год назад

    awesome !!!!

  • @ramandeepsingh8110
    @ramandeepsingh8110 4 года назад

    Hi,
    Thanks for sharing your knowledge with us. This code helped me a lot.
    But now I am facing a little issue in this that If I am using shape like a button linked to another page, this code is not working.
    Can you please help me with that if possible?
    Many Thanks,
    Raman

  • @gHaiLe1
    @gHaiLe1 3 года назад

    It worked for one of my projects but what if I don't want to rename the sheets the same as the values on the cells? Can I really still pull out the sheets that I need if they have a different names?

  • @jenofanesbrownb.6999
    @jenofanesbrownb.6999 3 года назад

    You are awesome!

  • @scottboulting881
    @scottboulting881 3 года назад

    This works perfectly however if i also hyperlink to a file on a network drive i get an error which if debugged is because its not on the hidden sheets, can i have multiple rules?

  • @t-dz6271
    @t-dz6271 2 года назад

    Nice work bro

  • @Gszada
    @Gszada 3 года назад

    Great stuff..

  • @pankajtoke4465
    @pankajtoke4465 3 года назад

    Very useful video thank you so much
    Can you please convert this demo for google sheets

    • @Computergaga
      @Computergaga  3 года назад

      Thank you, Pankaj. Sorry, I don't use Google Sheets.

  • @lftdv
    @lftdv Месяц назад

    I keep getting runtime error 9 - subscript out of range when trying both methods, not sure what im doing wrong here.

  • @janslootweg5620
    @janslootweg5620 3 года назад

    I don't have hyperlinks, but macro's to open the sheets. When i hide the sheets then the sheet will not open after running the macro. Can you help me.

  • @joancaragan5246
    @joancaragan5246 5 лет назад

    Hi thank you for this!!! Big help, also can you help me??
    What if i also have a hyperlink in 'Apples' that will go to another sheet (eg. 'Green Apple) but how can i hide/unhide Green Apple sheet like what i did to other sheets? What is the code on vba?? Hope you can help me. Thanks

  • @autumnalfoliage
    @autumnalfoliage 4 года назад

    Thanks for the tutorial. I followed along but am still getting an error for tabs that aren't named the same as the cell. My text does not match the name on the tab as it does not allow the same amount of characters that I can type into a cell. For example, for Academic Support Compensation Procedures I can only put at most "Academic Support Compensation P" as the tab name.
    If you change the text on the Main tab from "Apples" to "Apples Form", and the Apples tab remains named "Apples", will it still link you to the Apples tab? I see it worked for you, but you didn't change the text in the cell or the name on the tab.

  • @dejabluek8297
    @dejabluek8297 4 года назад +1

    When I am in the VBA window, I click on the Sheet and both dropdowns do not have anything else listed. (General) does not have Worksheet, same as (Declarations) . How do I get those dropdowns to show?

    • @Computergaga
      @Computergaga  4 года назад

      Try double clicking on the Sheet tab. At the top of the window on the title bar it will say if you are in a Module or a Sheet code window. You need to be in that sheet to see the drop downs.

  • @zain1991
    @zain1991 2 года назад

    Hi.. i have tried the same way but code is not working for me..
    1st i have saved file as macro enabled and then select my main sheet and open vba from developer tab.. write this code but didn’t work.. can you please tell me where am I wrong???

  • @estefaniabarboza1243
    @estefaniabarboza1243 4 года назад +1

    When I tried to use the when where the names do not match, it showed an error. Clicked to "debug" and it highlighted in yellow the "Sheets(shtName).Visible = xlSheetVisible"

    • @shechild22
      @shechild22 3 года назад +1

      It did the same for me but my sheets have the same names. Did you find out what the problem was? I was able to fix mine by changing/shortening the names of my sheets.

  • @matierk
    @matierk 4 года назад

    Thanks for this tutorial, what if i have a shape link to a sheet and i want to hide that sheet . Any help . Thanks

    • @Computergaga
      @Computergaga  4 года назад

      I think it works the same way. A link won't work to a hidden sheet, so VBA is used to unhide the sheet.

  • @jacklordcastilla2796
    @jacklordcastilla2796 3 года назад +1

    It works for Deactivate but I still hve issues with the FollowHyperlinks. it won't still open if I hide it. I am not sure what the issue is. But I have noticed my sheet is not in order. It shows Sheet1 then followed by Sheet10-19 the Sheet 2-9. May be this is the issue because it should be sheets 1-19 but I couldn't or don't know how to sort if from sheet 1-19

    • @glydllnn
      @glydllnn 2 года назад

      SAME DILLEMMA

  • @tiffanyurigirlsg3185
    @tiffanyurigirlsg3185 3 года назад

    Hello question, why is not working when I shared it with my co-workers? It's only working when i click the links

  • @arZx
    @arZx 3 года назад

    Is it possible to make the hyperlink ask for a password before it opens the sheet?
    Thank you, great video.

    • @Computergaga
      @Computergaga  3 года назад

      I guess we could create this kind of effect with a userform and test their input.

  • @number9991
    @number9991 4 года назад +1

    Hi Can someone help me here. When i am running the command I am getting run time error 9 and the error is highlighted here. Sheets(shtname).Visible = xlSheetVisible

    • @Computergaga
      @Computergaga  4 года назад

      Check the sheet name assigned to the shtname variable Raunak. That error indicates that he does not know this sheet.

    • @sambrookes3643
      @sambrookes3643 4 года назад

      @@Computergaga I am getting this exact same error and cannot for the life of me work out how to make this work

  • @zvikomutsindiri3592
    @zvikomutsindiri3592 5 лет назад +2

    I have multiple pages running and when I keep pressing my links even, I end up getting a runtime error 9 out of range notification.

    • @Computergaga
      @Computergaga  5 лет назад

      This type of error normally indicates that it cannot see a sheet by that name.

    • @sachinsatheesh1662
      @sachinsatheesh1662 4 года назад +1

      I have the same issue. But instead of multiple excel sheets, if it's just a workbook of 2 to 5 sheets this code works perfectly. Can u please design a code that will work on multiple sheets (more than 10 sheets to link in a workbook of 15 sheets)

    • @estefaniabarboza1243
      @estefaniabarboza1243 4 года назад

      Sachin Satheesh i am currently facing the same issue, tried to apply this in a small workbook and it worked perfectly, but when I tried to do it to one with more than 50 it shows the error and highlights "sheets(shtname).visible=xlsheetvisible"

  • @marekzember5515
    @marekzember5515 5 лет назад

    Same here, thank you.

  • @tommybagus8610
    @tommybagus8610 Год назад

    Why if i save it, and open it again, the formula has been lost? Any suggest?

  • @meister2212
    @meister2212 3 года назад

    Nice easy to follow only problem was my excel didn't have the subaddress function.

  • @nicholas3708
    @nicholas3708 2 года назад

    I get the error that "reference is not valid". What can I do?

  • @mufycw
    @mufycw 2 года назад

    this code doesnt work when you have done a hyperlink on a shape. Can you show code how to use it when the shape has a hyperlink?

  • @donaldlehwidi3944
    @donaldlehwidi3944 2 года назад

    Good day Sir.
    My name is Donald from South Africa
    I have been following your Excel teachings thank you so much for the knowledge you are sharing with us.
    I have a bit of a problem with the spreadsheet I am working on currently
    The hyperlinks wouldn't work to the hidden sheet
    I don't know if maybe the problem is that the name on the link isn't the same as the sheet name
    Can I please send you my spreadsheet and help me with it

    • @Computergaga
      @Computergaga  2 года назад

      Have you tried the technique in the video? The display text of the hyperlink is not a problem, but the link path must be accurate.
      You cannot link to a hidden sheet in Excel. So, this video shows a workaround.

    • @donaldlehwidi3944
      @donaldlehwidi3944 2 года назад

      I did try but still is not working I don't know what might be the reason

  • @zvikomutsindiri3592
    @zvikomutsindiri3592 5 лет назад +1

    HIe, when i hide my sheets and press the object for my hyperlinked sheet

    • @zvikomutsindiri3592
      @zvikomutsindiri3592 5 лет назад

      its not loading, any help?

    • @zvikomutsindiri3592
      @zvikomutsindiri3592 5 лет назад +2

      i had created hyperlinks on buttons to try making it a bit presentable but the code does not apply on links created on buttons

  • @Pirate_tat87
    @Pirate_tat87 Год назад

    Is there a way to do this with out VBA?

  • @InsideMyWall
    @InsideMyWall 2 года назад

    When I am sharing my sheet on a shared drive in office using hyperlink function (not onedrive or 365), my colleague is unable to open the links done. Any help???

    • @Computergaga
      @Computergaga  2 года назад

      I'm not sure. I would check the path of the links and their destination. Whether the colleague has access to the destination, and if the path is different for them.

  • @sambrookes3643
    @sambrookes3643 4 года назад

    Desperate for help. I have Sheets(shtName).Visible = xlSheetVisible highlighted and cannot fix it.

    • @Computergaga
      @Computergaga  4 года назад

      Ensure the step before it is correct Sam. Maybe it doesn't recognise the sheet. Do you get a error message?

  • @limonhope1605
    @limonhope1605 9 месяцев назад

    why doenst work with me

  • @bobjones2201
    @bobjones2201 5 лет назад

    When using a hyperlink formula, how can I link to hidden tab? I use the “#’” along with Vlookup and “‘!A1” to create hyperlink which works on unhidden tab, but once hidden I cannot get it to work. Any ideas?

    • @Computergaga
      @Computergaga  5 лет назад

      The worksheet needs to be unhidden, so I used VBA in this tutorial.

    • @bobjones2201
      @bobjones2201 5 лет назад

      I appreciate the fast response! My issue is that in using a hyperlink formula with vlookup I cannot get the VBA to unhide the tab. The VBA works with a hyperlink created manually but not with my formula. Thanks!

    • @bobjones2201
      @bobjones2201 5 лет назад

      One further piece of info that may be important, the displayed text in the cell without the formula appears to match the hidden tab name, but I cannot get it to unhide with either method. I assume it may need a variation in the VBA for hyperlinks created by a formula

  • @annaarentowicz28
    @annaarentowicz28 Год назад

    i wrote a perfectly identical code and it isnt working for me...

    • @Computergaga
      @Computergaga  Год назад

      There will be a reason Anna, but hard to tell without seeing it all. Are you receiving an error?

  • @aminsaleh7147
    @aminsaleh7147 2 года назад

    My excel do not have any developer in menu .how to make it appear!

    • @Computergaga
      @Computergaga  2 года назад

      Click File > Options > Customise the Ribbon and check the Developer box on the right.

  • @famousaction2549
    @famousaction2549 11 месяцев назад

    Thanks for the tutorial but can some one understand this code without basic knowledge of VBA?

    • @Computergaga
      @Computergaga  11 месяцев назад

      It would be difficult. Some knowledge always helps.
      Thanks for the comment 👍

  • @lexiconbuilders
    @lexiconbuilders 5 лет назад

    Hi this is awesome code how ever can help me, i am getting and error code run time error '9':
    subscript out of range, dont why i am getting this error, can you help me. thanks

    • @Computergaga
      @Computergaga  5 лет назад

      Thank you Hugo. This would normally indicate that Excel doesn't recognise your sheet name. Check the sheet name used for inaccuracies.

    • @mukeshchowdary2810
      @mukeshchowdary2810 4 года назад

      @@Computergaga Hi am facing the same error, but where the sheet name to be replaced?
      Thanks in advance!!!!

    • @juliaij93
      @juliaij93 4 года назад

      Make sure it says option explicit at the top. I was having this issue because option explicit was missing, so I typed it in and it worked

  • @glydllnn
    @glydllnn 2 года назад

    I WONDER WHY THIS DOESNT WORK WITH ME, AFTER WRITING THE VBA, THE HYPERLINK WONT FUNCTION. PLS HELP

    • @glydllnn
      @glydllnn 2 года назад

      WHEN I HIT THE HYPERLINK ON THE MAIN, IT DOESNT FUNCTION, THE HYPERLINK WONT LINK IT TO THE HIDDEN SHEET. I KEPT ON SMASHING THEIRS NO SHEET POPPED UP. I TRIED THIS METHOD BUT IT WONT WORK, BUT THE HIDING INACTIVE SHEET WAS REALLY A GREAT HELP.

    • @glydllnn
      @glydllnn 2 года назад

      WHEN THE SHEET IS NOT HIDDEN, IT WAS FINE, BUT WHEN I TRIED TO HIDE THE SHEET, THE CODE WONT WORK PLS PLS HELP

  • @johnmiller1239
    @johnmiller1239 2 года назад

    I’m gettin an out of range error. Guurr

    • @Computergaga
      @Computergaga  2 года назад

      Check the name of the sheet being used. Excel cannot find it.

    • @johnmiller1239
      @johnmiller1239 2 года назад

      @@Computergaga right on buddy. I had a space after the name. Appreciate the help my friend .

  • @karlleung8900
    @karlleung8900 5 лет назад

    How To Hyperlink to a Hidden "Drop-down list" ? doesn't use VBA ,Thank You

  • @mrvideos188
    @mrvideos188 Год назад

    Sir I need your email