I'm attempting to use a hyperlink to navigate to hidden sheets in an Excel workbook, but the code I'm using doesn't appear to recognize the target hyperlink, which has been created using the =Hyperlink() function. The hyperlink function is populated by a drop down list that contains all of the hidden sheet names. Does anyone know how I should be designating the target value? Or, if there is another way to get this to work?
Here's the code:
Private Sub Worksheet_FollowHyperlink(ByVal Target As Hyperlink)
Dim ShtName As String
ShtName = Target.Name
Sheets(ShtName).Visible = xlSheetVisible
Sheets(ShtName).Select
End Sub
Worksheet_FollowHyperlinkdoes not work with functions created using theHYPERLINKfunction, that's correct. This approach may work. - BigBen