Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Hide and protect a sheet
Message
From
24/12/2021 22:29:13
 
 
To
22/12/2021 11:34:43
General information
Forum:
Microsoft Office
Category:
Excel
Miscellaneous
Thread ID:
01683055
Message ID:
01683074
Views:
42
>Excel allows to hide a sheet. Then, we can click on any sheet and select Unhide to make that previous sheet visible again. What I need to do is password protect the unhide functionality. What would be the best practive to achieve that?

You can set the visible property to VeryHidden which can only be changed through VBA. Write a couple of Subs to turn the veryhidden property on and off:
Sub Hide_Sheet2
Sheets(“Sheet2”).Visible = 2
End Sub

Sub Show_Sheet2
Sheets(“Sheet2”).Visible = -1
End Sub
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform