Consulting

Results 1 to 5 of 5

Thread: Can you hyperlink to a hidden sheet?

  1. #1
    VBAX Regular kane's Avatar
    Joined
    Mar 2005
    Location
    Huntsville, AL
    Posts
    35
    Location

    Can you hyperlink to a hidden sheet?

    Can you hyperlink to a veryhidden worksheet?

    I have a hyperlink on sheet 1 that links to a veryhidden sheet 2.
    How do I get sheet 2 to become visible and the active sheet?

    I have a hyperlink on sheet 2 that refers back to sheet 1.
    How do I go back to sheet 1 and make sheet 2 veryhidden again?
    Last edited by mdmackillop; 05-20-2005 at 12:05 AM. Reason: Removing "Solved" status

  2. #2
    Administrator
    VP-Knowledge Base
    VBAX Grand Master mdmackillop's Avatar
    Joined
    May 2004
    Location
    Scotland
    Posts
    14,489
    Location
    Is this solved?
    MVP (Excel 2008-2010)

    Post a workbook with sample data and layout if you want a quicker solution.


    To help indent your macros try Smart Indent

    Please remember to mark threads 'Solved'

  3. #3
    Administrator
    Chat VP VBAX Guru johnske's Avatar
    Joined
    Jul 2004
    Location
    Townsville, Australia
    Posts
    2,872
    Location
    Hi Kane,

    If you've solved this, fine, but for the benefit of others who may also be wondering, you can use this:

    Option Explicit
    'code for sheet2 module
    Private Sub Worksheet_FollowHyperlink(ByVal Target As Hyperlink)
    Sheet2.Visible = xlSheetVeryHidden
    End Sub
    
    Option Explicit
    'code for sheet1 module
    Private Sub Worksheet_FollowHyperlink(ByVal Target As Hyperlink)
    Sheet2.Visible = xlSheetVisible
    End Sub

    Regards,
    John
    You know you're really in trouble when the light at the end of the tunnel turns out to be the headlight of a train hurtling towards you

    The major part of getting the right answer lies in asking the right question...


    Made your code more readable, use VBA tags (this automatically inserts [vba] at the start of your code, and [/vba ] at the end of your code) | Help those helping you by marking your thread solved when it is.

  4. #4
    Administrator
    VP-Knowledge Base VBAX Grand Master mdmackillop's Avatar
    Joined
    May 2004
    Location
    Scotland
    Posts
    14,489
    Location
    Or try the attached
    MVP (Excel 2008-2010)

    Post a workbook with sample data and layout if you want a quicker solution.


    To help indent your macros try Smart Indent

    Please remember to mark threads 'Solved'

  5. #5
    VBAX Regular kane's Avatar
    Joined
    Mar 2005
    Location
    Huntsville, AL
    Posts
    35
    Location
    Ok, another problem.

    I've got several hyperlinks on worksheet"Main" all refering to their own pages.
    How do I get the "production" hyperlink to goto the "production" worksheet and make it the only visible worksheet?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •