+ Reply to Thread
Results 1 to 5 of 5

How do I hyperlink to a hidden tab, then hide that tab again.

  1. #1
    Registered User
    Join Date
    11-16-2015
    Location
    bradford
    MS-Off Ver
    2013
    Posts
    18

    How do I hyperlink to a hidden tab, then hide that tab again.

    I have built a database with separate notes pages (worksheet) for each entry. There are 950 different entries at current so I want to hide the 950 additional worksheets and just keep the main database visible. I have been using the following code to allow the hyperlinks to work when the tabs are hidden:
    Private Sub Worksheet_FollowHyperlink(ByVal Target As Hyperlink)

    If Not beenThere Then
    beenThere = True
    Sheet2.Visible = True
    Sheet3.Visible = True
    Sheet4.Visible = True
    Sheet5.Visible = True
    End If
    beenThere = False
    End Sub

    and so on for each of the sheets, however when I follow a hyperlink it makes all the tabs visible again. With so many worksheets I do not want this to happen.

    How can I keep the worksheets hidden?
    Last edited by sameclipse; 11-25-2015 at 04:16 AM.

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: How do I hyperlink to a hidden tab, then hide that tab again.

    Try this...

    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Registered User
    Join Date
    11-16-2015
    Location
    bradford
    MS-Off Ver
    2013
    Posts
    18

    Re: How do I hyperlink to a hidden tab, then hide that tab again.

    Thanks for the code, However I get the following error message:

    Compile error
    Ambiguous name detected: worksheet_followhyperlink

    Do I need to change any of the code? include my worksheet numbers of something?

  4. #4
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: How do I hyperlink to a hidden tab, then hide that tab again.

    You have two procedures called Worksheet_FollowHyperlink. There can only be one. Keep the one I gave.

  5. #5
    Registered User
    Join Date
    11-16-2015
    Location
    bradford
    MS-Off Ver
    2013
    Posts
    18

    Re: How do I hyperlink to a hidden tab, then hide that tab again.

    Thanks,

    This works perfectly now!

+ 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 a hidden sheet
    By Keibri in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-21-2015, 09:47 AM
  2. [SOLVED] hyperlink in hidden sheet
    By edwinculanding in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-08-2013, 11:12 AM
  3. Replies: 1
    Last Post: 02-23-2013, 05:18 AM
  4. [SOLVED] Hyperlink to Hidden tabs then hide again after completed data input.
    By Toli in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 08-22-2012, 07:31 PM
  5. Hyperlink with Hidden Sheet
    By niladri20005 in forum Excel General
    Replies: 0
    Last Post: 10-21-2011, 01:10 PM
  6. hyperlink to a hidden sheet
    By globalpontoon in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-10-2011, 01:11 PM
  7. hyperlink to hidden tabs
    By grizzly6969 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-01-2010, 05:34 AM

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