Hello,
In my excel file, I have a series of hyperlinks on the first worksheet that link to the rest of the worksheets in the workbook. I want to hide these worksheets and only have them open when somone clicks on the hyperlink.
To do this, I have been trying to write a macro for the FollowHyperlink event so that when somebody clicks on the hyperlink the excel sheet is made visible. The following code works:
Sheets("sheetX").Visible = True
Sheets("sheetX").Select
However, I do not know how to write the code so that only the worksheet that corresponds to the hyperlink is the one that is made visible.
Any help or tips would be greatly, greatly appreciated. I have been stuck on this all morning.
Bookmarks