Macro Hyperlinks
Closed
Boffee95
Posts
1
Registration date
Monday 6 January 2014
Status
Member
Last seen
6 January 2014
-
6 Jan 2014 à 03:48
TrowaD Posts 2921 Registration date Sunday 12 September 2010 Status Contributor Last seen 27 December 2022 - 16 Jan 2014 à 11:57
TrowaD Posts 2921 Registration date Sunday 12 September 2010 Status Contributor Last seen 27 December 2022 - 16 Jan 2014 à 11:57
Related:
- Macro Hyperlinks
- Remove hyperlinks in word - Guide
- Find hyperlinks in word - Guide
- Excel online macro - Guide
- Excel run macro on open - Guide
- How to copy macro from one workbook to another - Guide
1 response
TrowaD
Posts
2921
Registration date
Sunday 12 September 2010
Status
Contributor
Last seen
27 December 2022
555
16 Jan 2014 à 11:57
16 Jan 2014 à 11:57
Hi Boffee,
You can't use hyperlinks on hidden sheets.
Try this code by implementing it in sheet1:
Whenever you double click on a sheet name in column D (row 12 and down) then the sheet will be made visible and activated.
You probably want to add another code to each individual sheet to hide the sheet again, when the sheet is deactivated for example.
Or you can hide all sheets again whenever sheet1 is selected. But that is up to you.
Best regards,
Trowa
You can't use hyperlinks on hidden sheets.
Try this code by implementing it in sheet1:
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
If Intersect(Target, Range(Cells(12, "D"), Cells(12, "D").End(xlDown))) Is Nothing Then Exit Sub
Sheets(Target.Value).Visible = True
Sheets(Target.Value).Activate
End Sub
Whenever you double click on a sheet name in column D (row 12 and down) then the sheet will be made visible and activated.
You probably want to add another code to each individual sheet to hide the sheet again, when the sheet is deactivated for example.
Or you can hide all sheets again whenever sheet1 is selected. But that is up to you.
Best regards,
Trowa