Lock a sheet

EtienneD

New Member
Joined
Jul 21, 2022
Messages
27
Office Version
  1. 2016
Platform
  1. Windows
Hi guys. Is it possible to lock (or protect) one of the sheet (bottom tab) of my excel file so the reader can only access some tabs but some other would be lock with a password?

Thank you in advance!
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Yes, you can protect (lock) individual sheets, and optionally use a password. However, what do you want to prevent? Protecting a sheet will still allow a user to view it, but they can't change any locked cells. If you want to prevent a user from even viewing it you have to take further steps.
 
Upvote 0
Yes, you can protect (lock) individual sheets, and optionally use a password. However, what do you want to prevent? Protecting a sheet will still allow a user to view it, but they can't change any locked cells. If you want to prevent a user from even viewing it you have to take further steps.
Thanks for the fast reply. Yes excatly, I need to prevent the user from even viewing this particular sheet, but I want it to stay in there since it contains a bunch of codes. I saw I can maybe hide it, but is it possible that when the user click on it, it asks for a password or just refuse access until the document is unprotected?
 
Upvote 0
Hide the sheets you want to hide
Go to Review, Protect Workbook, check "Protect structure"
Provide a password
Click OK

Make sure you do not forget this password!

Users will not be able to unhide the worksheet without the password. They will also not be able to hide, rename, add, or delete worksheets.
 
Upvote 0
Hide the sheets you want to hide
Go to Review, Protect Workbook, check "Protect structure"
Provide a password
Click OK

Make sure you do not forget this password!

Users will not be able to unhide the worksheet without the password. They will also not be able to hide, rename, add, or delete worksheets.
Thanks for the tip! So execpt for hidding the tab there’s no way to just “lock” the access with a password? Not even with VBA code?
 
Upvote 0
There is no built-in way to have a worksheet tab visible but prevent the user from opening that worksheet.

I think there is a way to do this with VBA where as soon as the restricted sheet is activated by the user, the VBA immediately activates a different sheet. However, if a user wants to access that sheet all they have to do is disable macros. VBA for security is not strong.
 
Upvote 0
Solution

Forum statistics

Threads
1,214,971
Messages
6,122,525
Members
449,088
Latest member
RandomExceller01

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