Forum Discussion
Lock cell without protecting worksheet
Protect individual cells in Excel
1. Start Excel.
2. Switch to the “Check” tab and select “Remove sheet protection”. You may need to allow this with a password if the worksheet is locked.
3. Select all cells by clicking in the top left corner of the table.
4. In the “Start” tab, select “Format> Format cells> Protection” and uncheck “Locked”. Click OK".
5. Now select the cells that you want to protect and choose "Format> Format cells> Protection" again. Check the box next to "Locked" and confirm with "OK".
6. Finally switch to "Check" and select "Protect sheet".
Adjust the options in the list to suit your needs.
Lock or unlock specific areas of a protected worksheet
I wish you continued success with Excel (the coolest invention since chocola... uh ... Microsoft! :-)))
and…Please keep asking here - I just taught myself Excel with the help of this forum.
Hope I was able to help you with this info.
Nikolino
I know I don't know anything (Socrates)
* Kindly Mark and Vote this reply if it helps please, as it will be beneficial to more Community members reading here.
- paritoshkavraSep 16, 2021Copper Contributor
If we want to protect cell only without protecting sheet, then what to do?
Here you are protecting sheet and my tool does not work for protected sheet.
- NikolinoDESep 17, 2021Gold Contributor
Protect / lock individual cells in Excel
- First of all, you should prevent Excel from locking the entire document when sheet protection is activated.
- So first select all cells of the table with Ctrl + A or click in the top left corner of the table.
- Right click on any cell and select "Format Cells ...". In the Protection tab, remove the checkmark next to "Locked". Click OK.
- Now, in Excel, use the mouse to select the cells or the range that you want to protect.
- Right-click on it and select “Format cells ...” again. In the Protection tab, check the box next to Blocked.
- Select the “Check” menu in Excel and click the “Protect sheet” button. Assign a password and confirm this twice.
Do not forget!
In "All users of this worksheet may:" submenu
The checkmarks for “Select locked cells” and “Select unlocked cells” should be ticked.
You can also do it with VBA code.
Sub CellProtect() Dim Blatt As Worksheet, rng As Range Set Blatt = Worksheets("Sheet1") Set rng = Blatt.Range(Cells(1, 1), Cells(1, 1)) rng.Select Blatt.Unprotect Blatt.Cells.Locked = False rng.Locked = True Blatt.Protect End Sub
Example file is inserted with VBA code
Additional Infos:
Lock or unlock specific areas of a protected worksheet
I would be happy to know if I could help.
NikolinoDE
Was the answer useful? Mark them as helpful!
This will help all forum participants.
- Priyal835Jan 23, 2023Copper Contributor
NikolinoDE Thank you very much for sharing this..
Along with protecting/Locking the cell, I also want to protect and restrict the "check box" added in that locked cells.
Can you please guide me for the same?
- Keliz123Jul 14, 2021Copper ContributorYou absolutely did not read the question.
- NikolinoDEJul 14, 2021Gold Contributor
You wrote in the Wrong Message and Wrong Person. As far as I can see, I've been writing to another person. If you have any problem with any answer or with myself, you can send me a private message and I will answer you for sure.
- Keliz123Jul 14, 2021Copper Contributor
NikolinoDE My apologies. Absolutely no problem. First time user here so it was my mistake.
- Christina333May 18, 2021Copper Contributor
- NikolinoDEMay 18, 2021Gold ContributorI am pleased that you have received a suggested solution for your requirement.
If you found one of the suggested solutions helpful, please mark it as "Best answer" or / with a like. This will be of great benefit to other community members who read here.
Always welcome.
Wish you a nice day / night with a lot of health, joy and love.
Nikolino
I know I know nothing (Socrates)