help with macro

Ron99

Active Member
Joined
Feb 10, 2010
Messages
347
Office Version
  1. 2016
Platform
  1. Windows
Hello....

I have two hyperlink created in sheet1, first hyperlink says (sheet2) second hyperlink says (sheet3), when I click on sheet2 hyperlink it takes me to sheet2 the same with hyperlink sheet3.

macro that I need help on is, after clicking sheet2 hyperlink I am on sheet2, when I click sheet1, sheet2 should be hidden. basically when I click on sheet1 whichever sheet after sheet1 should be hidden, but when I click on hyperlink the sheet should be shown.

Regards,
Ron..
 
Do you still have the code in place as it should work...

Private Sub Worksheet_FollowHyperlink(ByVal Target As Hyperlink)
Sheets(2).Visible = True
Sheets(2)Select

End Sub
 
Upvote 0

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.

Forum statistics

Threads
1,225,169
Messages
6,183,315
Members
453,155
Latest member
joncaxddd

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