mundas26
New Member
- Joined
- May 17, 2023
- Messages
- 1
- Office Version
- 2019
- Platform
- Windows
Hello everyone!
Please help me to solve this problem. All i need is to hide all Sheets once i click the Main sheet. Here's my main sheets code.
Private Sub Worksheet_FollowHyperlink(ByVal Target As Hyperlink)
LinkTo = Target.SubAddress
WhereBang = InStr(1, LinkTo, "!")
If WhereBang > 0 Then
MySheet = Replace(Left(LinkTo, WhereBang - 1), "'", "")
Worksheets(MySheet).Visible = True
Worksheets(MySheet).Select
MyAdd = Mid(LinkTo, WhereBang + 1)
Worksheets(MySheet).Range(MyAdd).Select
End If
End Sub
Private Sub Worksheet_FollowHyperlink(ByVal Target As Hyperlink)
Worksheets("KSA VM MOVEMENT").Select
Target.Parent.Worksheet.Visible = False
End Sub
Please help me to solve this problem. All i need is to hide all Sheets once i click the Main sheet. Here's my main sheets code.
Private Sub Worksheet_FollowHyperlink(ByVal Target As Hyperlink)
LinkTo = Target.SubAddress
WhereBang = InStr(1, LinkTo, "!")
If WhereBang > 0 Then
MySheet = Replace(Left(LinkTo, WhereBang - 1), "'", "")
Worksheets(MySheet).Visible = True
Worksheets(MySheet).Select
MyAdd = Mid(LinkTo, WhereBang + 1)
Worksheets(MySheet).Range(MyAdd).Select
End If
End Sub
Private Sub Worksheet_FollowHyperlink(ByVal Target As Hyperlink)
Worksheets("KSA VM MOVEMENT").Select
Target.Parent.Worksheet.Visible = False
End Sub