Hyperlink not working on protected sheet

Enzo_Matrix

Board Regular
Joined
Jan 9, 2018
Messages
113
I read a post from a few years ago addressing this issue but it did not resolve my problem. I have a workbook with 12 sheets in it, and each sheet has a copy of the 'table of contents' consisting of hyperlinks to each other sheet.

- I am using Excel 2013
- my workbook has 12 sheets
- hyperlink works on sheet 1, but not 2-12
- all sheets and cells in them are locked by macro
- Macro's work fine

My confusion is that when the workbook and sheets are protected the hyperlinks work on sheet 1 but none of the others when there is no formatting difference between them.

I have a macro that protects the sheets as well as the workbook in order to preserve formatting and the hyperlinks do not work as intended.

Code:
Sub ProtectSheets()
'Hides top row of sheet, protects all sheets

With Sheets("2")
    Rows("1").EntireRow.Hidden = True
End With

For Each sht In ActiveWorkbook.Sheets
    sht.Protect "123"
    Next

End Sub
Code:
Sub ProtectWorkbook()
'Protects entire workbook

ActiveWorkbook.Protect "123"

End Sub
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.

Forum statistics

Threads
1,223,977
Messages
6,175,753
Members
452,667
Latest member
vanessavalentino83

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