मुख्य सामग्री पर जाएं

Excel में छुपी हुई शीट के हाइपरलिंक का अनुसरण कैसे करें?

लेखक: ज़ियाओयांग अंतिम संशोधित: 2020-12-11

उदाहरण के लिए, मेरे पास एक वर्कबुक है जिसमें कई वर्कशीट हैं, पहली मास्टर शीट में अन्य शीट के लिए हाइपरलिंक हैं, और अब, मैं पहली शीट को छोड़कर सभी शीट छिपा देता हूं। इस मामले में, छुपे हुए शीट से लिंक करने वाले हाइपरलिंक उपलब्ध नहीं हैं। लेकिन, आप इन हाइपरलिंक्स को सफलतापूर्वक कैसे कार्यान्वित कर सकते हैं? जब आप एक हाइपरलिंक पर क्लिक करते हैं, तो लिंक की गई छिपी हुई शीट निम्नलिखित स्क्रीनशॉट में दिखाए अनुसार तुरंत खुल जाएगी:

छुपी हुई शीट 1 के लिए दस्तावेज़ हाइपरलिंक

वीबीए कोड के साथ छिपी हुई शीट खोलने के लिए हाइपरलिंक का पालन करें

छिपी हुई शीट को खोलने के लिए हाइपरलिंक का पालन करें और फिर इसे वीबीए कोड के साथ फिर से छिपाएं


वीबीए कोड के साथ छिपी हुई शीट खोलने के लिए हाइपरलिंक का पालन करें

निम्नलिखित वीबीए कोड आपको छुपी हुई वर्कशीट को उसके संबंधित हाइपरलिंक पर क्लिक करने पर खोलने में मदद कर सकता है, कृपया ऐसा करें:

1. उस शीट टैब पर राइट क्लिक करें जिसे आप छिपी हुई शीट के हाइपरलिंक का अनुसरण करना चाहते हैं, और फिर चुनें कोड देखें संदर्भ मेनू से, पॉप आउट में अनुप्रयोगों के लिए माइक्रोसॉफ्ट विज़ुअल बेसिक विंडो, कृपया निम्नलिखित कोड को कॉपी करें और रिक्त मॉड्यूल में पेस्ट करें:

वीबीए कोड: छिपी हुई शीट खोलने के लिए हाइपरलिंक का अनुसरण करें:

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
'Updateby Extendoffice
    Application.ScreenUpdating = False
    On Error Resume Next
    If Target.Column = 1 Then
        Sheets(Target.Value).Visible = xlSheetVisible
        Sheets(Target.Value).Select
    End If
    Application.ScreenUpdating = True
End Sub

छुपी हुई शीट 2 के लिए दस्तावेज़ हाइपरलिंक

नोट: उपरोक्त कोड में, संख्या 1 इस में यदि लक्ष्य। कॉलम = 1 तो स्क्रिप्ट उस कॉलम नंबर को इंगित करती है जिसमें हाइपरलिंक हैं, कृपया इसे अपनी आवश्यकता के अनुसार बदलें।

2. फिर इस कोड विंडो को सहेजें और बंद करें, अब, जब आप हाइपरलिंक पर क्लिक करते हैं जो विशिष्ट छिपी हुई शीट से जुड़ा है, तो छिपी हुई शीट तुरंत खुल जाएगी।


छिपी हुई शीट को खोलने के लिए हाइपरलिंक का पालन करें और फिर इसे वीबीए कोड के साथ फिर से छिपाएं

कभी-कभी, आपको छिपी हुई शीट को खोलने के लिए हाइपरलिंक का अनुसरण करने की आवश्यकता होती है, और जब आप मास्टर शीट पर वापस जाते हैं, तो आप चाहते हैं कि खुली हुई शीट फिर से छिपी हो। नीचे दिया गया VBA कोड आपकी मदद कर सकता है:

1. उस शीट टैब पर राइट क्लिक करें जिसे आप छिपी हुई शीट के हाइपरलिंक का अनुसरण करना चाहते हैं, और फिर चुनें कोड देखें संदर्भ मेनू से, पॉप आउट में अनुप्रयोगों के लिए माइक्रोसॉफ्ट विज़ुअल बेसिक विंडो, कृपया निम्नलिखित कोड को कॉपी करें और रिक्त मॉड्यूल में पेस्ट करें:

वीबीए कोड: वापस जाने पर छिपी हुई शीट को खोलने के लिए हाइपरलिंक का पालन करें और इसे फिर से छुपाएं:

Private Sub Worksheet_FollowHyperlink(ByVal Target As Hyperlink)
   'Updateby Extendoffice
    Application.ScreenUpdating = False
    Dim strLinkSheet As String
    If InStr(Target.Parent, "!") > 0 Then
        strLinkSheet = Left(Target.Parent, InStr(1, Target.Parent, "!") - 1)
    Else
        strLinkSheet = Target.Parent
    End If
    Sheets(strLinkSheet).Visible = True
    Sheets(strLinkSheet).Select
    Application.ScreenUpdating = True
End Sub

Private Sub Worksheet_Activate()
    On Error Resume Next
    Sheets(ActiveCell.Value2).Visible = False
End Sub

छुपी हुई शीट 3 के लिए दस्तावेज़ हाइपरलिंक

2. फिर कोड विंडो बंद करके विज्ञापन सहेजें, जब आप हाइपरलिंक पर क्लिक करते हैं, तो लिंक की गई छिपी हुई शीट तुरंत खुल जाएगी, लेकिन, यदि आप हाइपरलिंक वाली मास्टर शीट पर वापस जाते हैं, तो खुली हुई शीट स्वचालित रूप से फिर से छिप जाएगी।

नोट: ये कोड केवल उन शीट नामों पर लागू होते हैं जो आपके हाइपरलिंक टेक्स्ट से मेल खाते हैं।


डेमो: वीबीए कोड के साथ छिपी हुई शीट खोलने के लिए हाइपरलिंक का पालन करें

एक्सेल के लिए कुटूल: 300 से अधिक उपयोगी एक्सेल ऐड-इन्स के साथ, 30 दिनों में बिना किसी सीमा के आज़माने के लिए निःशुल्क। अभी डाउनलोड करें और निःशुल्क परीक्षण करें!

सर्वोत्तम कार्यालय उत्पादकता उपकरण

🤖 कुटूल्स एआई सहयोगी: निम्न के आधार पर डेटा विश्लेषण में क्रांति लाएं: बुद्धिमान निष्पादन   |  कोड जनरेट करें  |  कस्टम फ़ॉर्मूले बनाएं  |  डेटा का विश्लेषण करें और चार्ट बनाएं  |  कुटूल फ़ंक्शंस का आह्वान करें...
लोकप्रिय सुविधाएँ: डुप्लिकेट ढूंढें, हाइलाइट करें या पहचानें   |  रिक्त पंक्तियाँ हटाएँ   |  डेटा खोए बिना कॉलम या सेल को संयोजित करें   |   फॉर्मूला के बिना गोल ...
सुपर लुकअप: एकाधिक मानदंड VLookup    मल्टीपल वैल्यू वीलुकअप  |   अनेक शीटों में VLookup   |   फजी लुकअप ....
उन्नत ड्रॉप-डाउन सूची: शीघ्रता से ड्रॉप डाउन सूची बनाएं   |  आश्रित ड्रॉप डाउन सूची   |  बहु-चयन ड्रॉप डाउन सूची ....
स्तम्भ प्रबंधक: कॉलमों की एक विशिष्ट संख्या जोड़ें  |  कॉलम ले जाएँ  |  छिपे हुए कॉलम की दृश्यता स्थिति टॉगल करें  |  रेंज और कॉलम की तुलना करें ...
फीचर्ड फीचर्स: ग्रिड फोकस   |  डिजाइन देखें   |   बड़ा फॉर्मूला बार    कार्यपुस्तिका एवं शीट प्रबंधक   |  संसाधन लाइब्रेरी (ऑटो टेक्स्ट)   |  खजूर बीनने वाला   |  कार्यपत्रकों को संयोजित करें   |  एन्क्रिप्ट/डिक्रिप्ट सेल    सूची के अनुसार ईमेल भेजें   |  सुपर फ़िल्टर   |   विशेष फ़िल्टर (फ़िल्टर बोल्ड/इटैलिक/स्ट्राइकथ्रू...) ...
शीर्ष 15 टूलसेट12 टेक्स्ट टूल्स (पाठ जोड़ें, अक्षर हटाएँ, ...)   |   50 + चार्ट प्रकार (गैन्ट चार्ट, ...)   |   40+ प्रैक्टिकल सूत्र (जन्मदिन के आधार पर आयु की गणना करें, ...)   |   19 निवेशन टूल्स (QR कोड डालें, पथ से चित्र सम्मिलित करें, ...)   |   12 रूपांतरण टूल्स (शब्दों को संख्याएँ, मुद्रा रूपांतरण, ...)   |   7 विलय और विभाजन टूल्स (उन्नत संयोजन पंक्तियाँ, विभाजन कोशिकाओं, ...)   |   ... और अधिक

एक्सेल के लिए कुटूल के साथ अपने एक्सेल कौशल को सुपरचार्ज करें, और पहले जैसी दक्षता का अनुभव करें। एक्सेल के लिए कुटूल उत्पादकता बढ़ाने और समय बचाने के लिए 300 से अधिक उन्नत सुविधाएँ प्रदान करता है।  वह सुविधा प्राप्त करने के लिए यहां क्लिक करें जिसकी आपको सबसे अधिक आवश्यकता है...

Description


ऑफिस टैब ऑफिस में टैब्ड इंटरफ़ेस लाता है, और आपके काम को बहुत आसान बनाता है

  • Word, Excel, PowerPoint में टैब्ड संपादन और रीडिंग सक्षम करें, प्रकाशक, एक्सेस, विसियो और प्रोजेक्ट।
  • नई विंडो के बजाय एक ही विंडो के नए टैब में एकाधिक दस्तावेज़ खोलें और बनाएं।
  • आपकी उत्पादकता 50% बढ़ जाती है, और आपके लिए हर दिन सैकड़ों माउस क्लिक कम हो जाते हैं!
Comments (9)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Not sure if I will get a response to this one, but when I click the any of my hyperlinks I get a "reference isn't valid" error.
Everything still works, I just need to click ok to continue.
Does anyone have an idea what causes this error for this code?
Thank you,
This comment was minimized by the moderator on the site
I have created many wordbook and I want to index those in one page.

N.B: My point is I want to hide all the sheets, the sheets will linked with setting picture to main page. By clicking the picture linked sheet will be shown and when I come back to the main sheet the un-hide sheet will be hidden again
This comment was minimized by the moderator on the site
I would like to use this code but only want it to apply to column A. I have other web address links in other cells which cause a problem when running this code.
This comment was minimized by the moderator on the site
My hyperlink "text" is number only, and it doesn't work...
This comment was minimized by the moderator on the site
I'm using the code on two different sheets. It works for one of about 40 hyperlinks on one sheet and it opens two of about 10 hyperlinks one she second, the sheets on the second which do open do go back into hiding when I return to the sheet. The error I get when it will not open a sheet is Run-time error"9": script out of range and the code it points me to - Sheets(strLinkSheet).Visible = True Any ideas as to what change is needed make the code work on all of the sheets? Thank you in advance.
This comment was minimized by the moderator on the site
I have used this code on two different sheets in my workbook, and in both cases it works great, except for the first hyperlink on each page. I get "Subscript out of range error" and the debugger points to the "Sheets(strLinkSheet).Visible = True" right after the "end if". Anyone else see this error? It is only on the first link on the page. (my hyperlinks are in column A, and start in row 2)
This comment was minimized by the moderator on the site
[quote]I have used this code on two different sheets in my workbook, and in both cases it works great, except for the first hyperlink on each page. I get "Subscript out of range error" and the debugger points to the "Sheets(strLinkSheet).Visible = True" right after the "end if". Anyone else see this error? It is only on the first link on the page. (my hyperlinks are in column A, and start in row 2)By HelzBelz[/quote] Sheet names can't have space like "Sheet 1". I fixed my sheet names to "Sheet1" and the error stopped.
This comment was minimized by the moderator on the site
I have a sheet that is hidden that contains a hyperlink. I would like to be able go to the hidden sheet and have it close when I go back to the original sheet. I used the code but it does not work.
This comment was minimized by the moderator on the site
I am trying to hide a sheet that has a hyperlink. I would like to be able to click on the sheet go to the hyperlink sheet and then click back to the sheet and close the hidden sheet. I have tried your instructions but it does not work. Not sure what I am doing wrong.
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations