Good Morning,
I have followed step by step the above tutorial but am getting an error. The code that I typed is the following:
Private Sub Worksheet_FollowHyperlink(ByVal Target As Hyperlink)
LinkTo = Target.SubAddress
WhereBang = InStr(1, LinkTo, "!")
If WhereBang > 0 Then
MySheet = Left(LinkTo, WhereBang - 1)
Worksheets(MySheet).Visible = True
Worksheets(MySheet).Select
MyAddr = Mid(LinkTo, WhereBang + 1)
Worksheets(MySheet).Range(MyAddr).Select
End If
End Sub
The error that I am getting is on the line where the fonts are in blue. I would really like to have this working since I am working on a big project and require that the sheets are only accessible through a hyperlink and are hidden at all times unless the particular sheet is being used.
Thanking you in advance,
Emanuel (Sam) Camilleri
I have followed step by step the above tutorial but am getting an error. The code that I typed is the following:
Private Sub Worksheet_FollowHyperlink(ByVal Target As Hyperlink)
LinkTo = Target.SubAddress
WhereBang = InStr(1, LinkTo, "!")
If WhereBang > 0 Then
MySheet = Left(LinkTo, WhereBang - 1)
Worksheets(MySheet).Visible = True
Worksheets(MySheet).Select
MyAddr = Mid(LinkTo, WhereBang + 1)
Worksheets(MySheet).Range(MyAddr).Select
End If
End Sub
The error that I am getting is on the line where the fonts are in blue. I would really like to have this working since I am working on a big project and require that the sheets are only accessible through a hyperlink and are hidden at all times unless the particular sheet is being used.
Thanking you in advance,
Emanuel (Sam) Camilleri