+ Reply to Thread
Results 1 to 5 of 5

Hyperlink to hidden worksheet, issue

  1. #1
    Registered User
    Join Date
    09-19-2017
    Location
    australia
    MS-Off Ver
    2010
    Posts
    3

    Hyperlink to hidden worksheet, issue

    Hi there

    I'm using this code to Hyperlink to hidden worksheet once double click and it should be hidden when I get back to "Overall" sheet, and its working fine with me. but i have to add new case everyday. as everyday will be a new worksheet. Is there any other way to make it easiest?
    any help would be appreciated.

    My main worksheet is "Overall" and all the hyperlinks at the $B column. everyday there will be a new worksheet named same as that day.
    regards,,

    -------------------------

    Private Sub Worksheet_Activate()
    Dim sh As Worksheet

    For Each sh In ThisWorkbook.Sheets
    If (sh.Name <> "Overall") Then
    sh.Visible = xlSheetHidden

    End If
    Next sh
    End Sub
    Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
    Select Case Target.Address
    Case "$B$4"
    Sheets("280617").Visible = True
    Sheets("280617").Activate
    Case "$B$5"
    Sheets("290617").Visible = True
    Sheets("290617").Activate
    Case "$B$6"
    Sheets("300617").Visible = True
    Sheets("300617").Activate
    Case "$B$7"
    Sheets("030717").Visible = True
    Sheets("030717").Activate
    Case "$B$8"
    Sheets("040717").Visible = True
    Sheets("040717").Activate
    Case "$B$9"
    Sheets("050717").Visible = True
    Sheets("050717").Activate
    Case "$B$55"
    Sheets("260917").Visible = True
    Sheets("260917").Activate
    End Select
    End Sub

  2. #2
    Registered User
    Join Date
    09-14-2017
    Location
    london
    MS-Off Ver
    2016
    Posts
    7

    Re: Hyperlink to hidden worksheet, issue

    Have a look at this quick example I created, would this be easier?
    Attached Files Attached Files
    Last edited by check mate; 09-19-2017 at 05:03 AM. Reason: Added error capture in double click & if blank do nothing

  3. #3
    Registered User
    Join Date
    09-19-2017
    Location
    australia
    MS-Off Ver
    2010
    Posts
    3

    Re: Hyperlink to hidden worksheet, issue

    I have try your code and its working fine, Thank you ; but
    the code is working at all the cells and the error msg keeps coming up. I do need it to be working only with custom range, eg:$B5:$B500

    please advice..

    thank you.
    Last edited by luaylool; 09-19-2017 at 09:27 PM.

  4. #4
    Registered User
    Join Date
    09-14-2017
    Location
    london
    MS-Off Ver
    2016
    Posts
    7

    Re: Hyperlink to hidden worksheet, issue

    Add this in the BeforeDoubleClick before the activate sheet
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    if the last row is not 500 then you can remove the " Or Target.Row > 500 " and it will work from 5 onwards

  5. #5
    Registered User
    Join Date
    09-19-2017
    Location
    australia
    MS-Off Ver
    2010
    Posts
    3

    Re: Hyperlink to hidden worksheet, issue

    Thank you,

    works perfectly..

    appreciated.

    Regards..

+ 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. Broken Hidden Hyperlink Issue
    By itgroove_kelly in forum Excel General
    Replies: 0
    Last Post: 08-20-2014, 12:33 PM
  2. 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
  3. 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
  4. [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
  5. Hidden Pages to Appear on Hyperlink
    By grounded in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-06-2009, 10:03 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

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