I have hidden sheets that I want to 'unhide' once a hyperlink is clicked but can not figure out the code needed on each sheet.
I've tried this code I found online but it's not working for me.
Please help!
Private Sub Worksheet_FollowHyperlink(ByVal Target As Hyperlink)
shtname = Left(Target.SubAddress, WorksheetFunction.Find(“!”, Target.SubAddress) – 1)
Sheets(shtname).Visible = True
Me.Visible = xlSheetHidden
End Sub
I've tried this code I found online but it's not working for me.
Please help!
Private Sub Worksheet_FollowHyperlink(ByVal Target As Hyperlink)
shtname = Left(Target.SubAddress, WorksheetFunction.Find(“!”, Target.SubAddress) – 1)
Sheets(shtname).Visible = True
Me.Visible = xlSheetHidden
End Sub