Hyperlink to open hidden worksheets

majedix

New Member
Joined
May 7, 2013
Messages
11
I have a workbook with many work sheets. My main sheet (called Last 10 days reports) has links to other sheets.
I would like to hide all sheets except the main sheet (Last 10 days reports) when the user opens the file. When the user clicks on any hyperlink to any worksheet.

Main Sheet (Last 10 days reports)
Sheets to be hidden (Sept13 report) and sheet (Sept14 report )and so on..


Best Regards,
 
Then my post # 7 will tell you what to do.
 
Upvote 0

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
Then use a Shape linked to a macro, which contains code to hide the page again.
 
Upvote 0
Then use a Shape linked to a macro, which contains code to hide the page again.

Private Sub Worksheet_FollowHyperlink(ByVal Target As Hyperlink)
Worksheets("Last 7 days reports").Select
Target.Parent.Worksheet.Visible = False
End Sub



i have used this code and work perfect. once i click in the back cells in transfer me in the main sheet " Last 7 days report" but, if i click by mouse in the sheet bar over sheet " Last 7 days reports " the sheets that shall be hidden doesn't go still so every time shall i click the back cell to be hide...

Is there any code can i use it to slove this ..


thanks alot.
 
Upvote 0
Have a look at the Worksheet_Deactivate and Worksheet_Activate event codes.
They will allow you to run code such as hiding a sheet.
 
Upvote 0
Hello Wigi,

I tried your code but, I am wondering why its not working on mine.
My case is like that of Majedix...My Sheet 1, I named it "Menu" supposed to work like a dashboard. Maybe 30-40 files are hidden which needed a hyperlink.

I dont have problem with shapes because I use macro on it..sweet!

My concern is the hyperlinks to hidden sheet...IT DOESN'T WORK... I even used the podcast of Mr. Jellen on Youtube and it still doesn't work!

I pasted your codes to the VBA (ALT F11), double clicking sheet 1(Menu), then on the top selecting Worksheet. And it still doesn't work.

Here is the png link to my dashboard. I encircled with blue/red the hidden files that should fire up when these hyperlinks are clicked.


https://app.box.com/s/0yusya55kn6iorbjfz7v

Please help me, too. Is there a way to tweak your code so it would work on mine

Thanks a lot!
 
Upvote 0

Forum statistics

Threads
1,216,153
Messages
6,129,172
Members
449,490
Latest member
TheSliink

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top