Hello All,
I'm trying to Hyperlink to a hidden sheet using a button or picture. I get it to work just fine when I use a text hyperlink. What am I doing wrong.
Private Sub Worksheet_FollowHyperlink(ByVal Target As Hyperlink)
Dim ShtName As String
ShtName = Left(Target.SubAddress, InStr(1, Target.SubAddress, "!") - 1)
Sheets(ShtName).Visible = xlSheetVisible
Sheets(ShtName).Select
I'm trying to Hyperlink to a hidden sheet using a button or picture. I get it to work just fine when I use a text hyperlink. What am I doing wrong.
Private Sub Worksheet_FollowHyperlink(ByVal Target As Hyperlink)
Dim ShtName As String
ShtName = Left(Target.SubAddress, InStr(1, Target.SubAddress, "!") - 1)
Sheets(ShtName).Visible = xlSheetVisible
Sheets(ShtName).Select