How To Protect and Unprotect Excel Sheet With or Without Password
How To Protect and Unprotect Excel Sheet With or Without Password
10
The tutorial shows how to protect Excel sheet with or without passwords. It also explains how to unlock Excel Custom Search
spreadsheet without password if you forgot or misplaced it.
When sharing your worksheets with other people or sending your Excel files outside of your
organization, you may want to prevent other users from changing cells that shouldn't be changed, Excel: featured articles
and also from moving or deleting important data in your worksheet or workbook.
Сompare 2 columns in Excel for
Luckily, Excel provides a quick and easy way to lock a sheet or password protect an entire matches and differences
workbook to prevent accidental or deliberate changes in their contents. Compare 2 Excel files/sheets for
differences
Excel worksheet protection - the basics
Merge multiple sheets into one
How to password protect an Excel sheet
Merge Excel rows without losing
How to unlock Excel spreadsheet
data
How to unlock Excel sheet with password
Merge 2 columns in Excel
How to unprotect Excel sheet without password
Excel DATEDIF - calculating date
How to protect a workbook in Excel difference in days, weeks, years
If you strive to ensure the maximum security protection for your Excel files, be sure to do all of Remove duplicate emails in
the following: Outlook quickly and safely
https://www.ablebits.com/office-addins-blog/2016/02/10/protect-unprotect-excel-sheet-pas... 8/15/2017
How to protect worksheets and unprotect Excel sheet without password Page 2 of 20
1. Use the modern versions of Excel 2010, Excel 2013, and 2016 with enhanced data encryption Сreate and use e-mail templates
mechanisms. in Outlook
2. Protect your sheets with strong passwords that include different types of alpha numeric
characters and special symbols. At that, try to make passwords as random as possible, for
example by using our password generating tool.
Excel formulas
3. Protect the workbook structure to prevent other people from adding, moving, renaming,
deleting or unhiding your sheets. Excel functions
4. For workbook-level security, encrypt the workbook with different passwords from opening and Excel PivotTables Excel charts
modifying. Excel Vlookup
5. If possible, store your Excel files with sensitive information in a secure location, e.g. on an Excel duplicates
encrypted hard drive. Merge data in Excel
Excel formatting
Sign in
Register
Log in
To password protect your Excel sheet, type a password in the corresponding field. Be sure
to remember the password or store it in a safe location because you will need it later to
unprotect the sheet.
If the worksheet protection is nothing more than a precaution against accidental modification
of the sheet contents by yourself or by the members of your local team, you may not want to
bother about memorizing the password and leave the password field empty. In this case,
unprotecting the sheet takes just a single click on the Unprotect Sheet button on the ribbon or
in the sheet tab's right-click menu.
By default, the following 2 options are selected: Select locked cells and Select unlocked cells. If
you leave only these two options selected, the users of your sheet, including yourself, will
be able only to select cells (both locked and unlocked).
To allow some other actions such as sorting, filtering, formatting cells, deleting or inserting
rows and columns, check the corresponding boxes.
If you don't check any action, users will only be able to view the contents of your Excel
sheet.
https://www.ablebits.com/office-addins-blog/2016/02/10/protect-unprotect-excel-sheet-pas... 8/15/2017
How to protect worksheets and unprotect Excel sheet without password Page 3 of 20
3. The Confirm Password dialog box will pop-up prompting you to retype the password so that an
accidental misprint won't lock your Excel sheet forever. Retype the password and click OK.
Done!
Right-click the sheet tab, and select Unprotect Sheet… from the context menu.
https://www.ablebits.com/office-addins-blog/2016/02/10/protect-unprotect-excel-sheet-pas... 8/15/2017
How to protect worksheets and unprotect Excel sheet without password Page 4 of 20
On the Home tab, in the Cells group, click Format, and select Unprotect Sheet from the drop-
down menu.
If you are dealing with a password-protected worksheet, Excel will ask you to enter the
password. Type the password and click OK.
If the worksheet was not protected with password, clicking the Unprotect Sheet button is all it
takes to unlock the sheet.
Unlock Excel spreadsheet with VBA code (for Excel 2010 and lower)
If you are using Excel 2010 or older version, you can unlock a password-protected sheet with the
following macro.
2. Right-click the workbook name on the left pane (Project-VBAProject pane) and select Insert >
Module from the context menu.
Sub PasswordBreaker() ?
'Breaks worksheet password protection.
https://www.ablebits.com/office-addins-blog/2016/02/10/protect-unprotect-excel-sheet-pas... 8/15/2017
How to protect worksheets and unprotect Excel sheet without password Page 5 of 20
Exit Sub
End If
4. Press F5 or click the Run button on the toolbar and wait a couple of minutes. The macro will
report a cracked password, which is not the original one (always some combination of A's and
B's), but nevertheless it works.
If you are not very comfortable with VBA, you can find the detailed guidance in the following
tutorial: How to insert and run VBA code in Excel.
If you need to unprotect Excel sheet without password in the modern versions of Excel 2013 and
Excel 2016, try one of free tools, for example Password Protection Remover add-in for Excel.
2. With the cursor positioned in cell A1, press Shift + Ctrl + End to select all used cells in the
worksheet.
4. Create a new sheet in the current workbook or in a different workbook (to create a new Excel
file, simply press Ctrl + N ).
5. In the new blank worksheet, place the cursor in A1 and press Ctrl + V to paste the contents of
the password-protected sheet.
Notes:
This method works only if the Select locked cells and Select unlocked cells actions are allowed in
the protected spreadsheet.
If the password-protected worksheet has external links to other sheets or workbooks, you
may need to re-create those links manually.
You can use Paste Special to copy / paste the column widths so you won't need to adjust them
in the new sheet manually.
1. On the Review tab, in the Changes group, click the Protect Workbook button.
https://www.ablebits.com/office-addins-blog/2016/02/10/protect-unprotect-excel-sheet-pas... 8/15/2017
How to protect worksheets and unprotect Excel sheet without password Page 6 of 20
2. Under Protect workbook for, select one of the two options, or both:
Check the Structure box to protect the structure of a workbook. This will prevent the
following actions:
Inserting new sheets and chart sheets. However, users will be able to insert a chart in an
existing worksheet.
Check the Windows box to retain the size and position of workbook windows. This will
prevent users from moving, resizing, minimizing, or closing the workbook windows.
Note. The Windows option is not available (greyed out) in Excel 2013 and Excel 2016, as
shown in the screenshot above. It is because Microsoft introduced the Single Document
Interface in Excel 2013, where each workbook has its own top-level window that can be
minimized, restored, and closed.
4. Retype the password in the Confirm Password window and click OK. That's it!
1. Click the Protect Workbook button again (in a locked workbook, it is highlighted in green like in
the screenshot below):
Important note! Protecting the workbook structure should not be confused with workbook-
level password encryption that can prevent other users from opening or/and modifying your
workbook. If you are interested in this level of workbook protection, check out the next sections
of this tutorial.
If you store your workbooks in a shared location such as a company local network, and you want
to prevent other users from viewing your Excel files, you can encrypt your workbook with
password that won't even let other people open it.
https://www.ablebits.com/office-addins-blog/2016/02/10/protect-unprotect-excel-sheet-pas... 8/15/2017
How to protect worksheets and unprotect Excel sheet without password Page 7 of 20
1. In the workbook you want to encrypt, click File > Info, click the Protect Workbook button, and
select Encrypt with Password in the drop-down menu.
2. The Encrypt Document window will appear, you enter a password in the Password box, and click
OK.
.
By default, Microsoft Excel uses AES 128-bit advanced encryption, and you can supply a
password up to 255 characters.
3. Retype the password in the Reenter password box, and click OK.
To remove the workbook encryption, repeat the above steps, delete the password from the
Password box, click OK, and then save your workbook.
Tip. In addition to password-protection, you can secure your Excel files further by using the
BitLocker Drive Encryption, which is available in the Ultimate and Enterprise editions of
Windows Vista and Windows.
If you don't mind other users opening your Excel file but you want to prevent them from making
any changes to your workbook, perform the following steps.
1. In your Excel workbook, click the Save As button, and then click the Tools button at the bottom
of the window.
2.
https://www.ablebits.com/office-addins-blog/2016/02/10/protect-unprotect-excel-sheet-pas... 8/15/2017
How to protect worksheets and unprotect Excel sheet without password Page 8 of 20
3. In the General Options dialog window, type a password in the Password to modify box.
Additionally, you can select the Read-only option, which is recommended.
Tip. If you want to protect your Excel file both from modifying and opening, type the
passwords in the Password to open and Password to modify boxes. It can be the same
password of two different ones.
4. Retype the password in the Confirm Password dialog, and click OK. If you've entered 2 passwords
in the previous step, you will be asked to confirm both.
To remove the password protection, repeat the above steps, and delete the password(s) from
the Password to open and Password to modify boxes. Then click the Save button to save your
workbook.
This is how you can protect an Excel sheet and lock the entire workbook from changing or
opening. However, sometimes you may not want to go that far and rather lock only certain cells in
your sheet. And this is exactly what we are going to discuss in the next article. I thank you for
reading and hope to see you on our blog next week.
https://www.ablebits.com/office-addins-blog/2016/02/10/protect-unprotect-excel-sheet-pas... 8/15/2017
How to protect worksheets and unprotect Excel sheet without password Page 9 of 20
how to unprotected the work book without any password, if password is forget
Reply
Reply
Hi!
If yo are using Excel 2010 or earlier, you can unprotected the workbook without password
by using this script.
For Excel 2013 or 2016, you can use one of free password protection removers, for example
this one:
http://www.spreadsheet1.com/password-protection-remover-free-office-excel-add-in.html
Reply
Reply
Reply
Reply
5 Rajesh says:
May 18, 2016 at 4:40 pm
hi
one help please
i have one excel sheet i want give that to one of my friend but i want set limit the for copying
https://www.ablebits.com/office-addins-blog/2016/02/10/protect-unprotect-excel-sheet-pas... 8/15/2017
How to protect worksheets and unprotect Excel sheet without password Page 10 of 20
sheet
such as if i set limit for one time copy then after pasting it no more copy can be made or it
should ask for password please help as early as possible or is there any other way to solve my
problem
Reply
6 Anonymous says:
May 19, 2016 at 9:37 am
Reply
When I follow your instructions, which are very good, when i click on protect workbook, the
drop down window opens but nothing is clickable? Any thoughts as to why these options
won't work for me? Also, on the tools drop down, the only line that can be completed is the
second line, the first line won't allow me to put in a password, after I go to "save as" and select
the file.
John
Reply
8 wami says:
June 7, 2016 at 10:05 pm
Reply
9 Nath says:
June 29, 2016 at 11:28 pm
can you save the password as text in the VBA code so if you forget you can easily find without
running your scipt above?
Reply
Amit says:
August 4, 2016 at 6:45 pm
Reply
10 Azazel says:
July 3, 2016 at 8:14 am
Reply
Reply
12 Rachel says:
July 11, 2016 at 8:59 am
I have not forgotten my password, but all unprotect sheet access is not highlighted therefore
can not click on to enter my password.
https://www.ablebits.com/office-addins-blog/2016/02/10/protect-unprotect-excel-sheet-pas... 8/15/2017
How to protect worksheets and unprotect Excel sheet without password Page 11 of 20
I have also tried entering your VBA code, but when right click a box appears stating "Project is
unviewable"
Please help
Reply
Nikki says:
March 1, 2017 at 11:47 pm
I am having the same issue and would love to find resolution. I have several worksheets
that are now greyed out from allowing me to highlight and release the protection. Help!
Reply
Vanessa says:
April 17, 2017 at 12:47 pm
Same thing happened to me... check if the workbook is shared, I think that is the
problem, you have to un-share it. Go to the Review tab and under the Changes group,
click Share Workbook. Clear the ‘Allow changes by more than one user at the same time’
option. Once you remove that option, it should allow you to enter the password. Hope it
works for you ;)
Reply
Thanks!!!!!
Reply
Thamks.
I have Solve my problem to guide me.
Reply
15 wayne says:
August 5, 2016 at 1:33 pm
Hi How to protect certain rows/columns only in excel (where my formula will not be editable).
Thanks
Reply
hi,
thanks
Reply
17 pratik says:
August 17, 2016 at 11:59 am
Reply
18 jacksonlimboz says:
August 23, 2016 at 12:27 pm
https://www.ablebits.com/office-addins-blog/2016/02/10/protect-unprotect-excel-sheet-pas... 8/15/2017
How to protect worksheets and unprotect Excel sheet without password Page 12 of 20
Excel file password breaker tool is available to remove lost password from Excel file. This
application enables to open locked Word and Access file password also without any
obstruction.
Reply
19 Evan says:
August 23, 2016 at 8:28 pm
Looking for how to set a workbook to unProtected mode due to untrusted from a network
site.
Reply
20 Angel says:
September 9, 2016 at 3:34 am
Amazing! Thank you! Though I dont have a password to a worksheet, I unlocked the
worksheet.
Reply
21 godfrey says:
September 13, 2016 at 11:52 am
Reply
22 Ivan says:
September 14, 2016 at 9:04 am
Reply
hello,
i have hyperlinks to different sheets in my excel workbook, but i want to password protect
them i.e. people cannot click and go to that particular sheet...how do i do it? or alternatively a
way of hiding sheet only if you have a password can you open the sheet...how do i do it ?
Reply
24 SPORK says:
September 20, 2016 at 2:25 pm
Reply
25 dan says:
September 21, 2016 at 3:43 pm
Dear sir,
I have protected shared Excel doc. I do not know the password, how can I remove the
protection?.
Thanks
Reply
26 Mr D says:
September 29, 2016 at 8:54 am
Reply
https://www.ablebits.com/office-addins-blog/2016/02/10/protect-unprotect-excel-sheet-pas... 8/15/2017
How to protect worksheets and unprotect Excel sheet without password Page 13 of 20
27 Boke says:
October 7, 2016 at 5:06 am
Hi,
i have set Excel file(.xlsm) Password protection from modifying (!!) and allowed to open the file
as read-only. How i can use VBA macros to determine that passord protection from modifying
is set or not before the file saving.
And how i can write in VBA macros to unprotect and protect again exactly for modifying only ?
Reply
Reply
29 Nitin says:
October 15, 2016 at 3:21 pm
Thankx so much. i forget my password if you don't help me my data will be loss
thankx again sir
Reply
30 NIRANJAN says:
October 18, 2016 at 5:24 pm
Reply
31 Philip says:
October 22, 2016 at 11:46 am
I don't think the VBA script works to unlock a password protected workbook in Windows 10
with Excel 2010. Pressing Alt-F11 doesn't access a list of workbook files.
Reply
32 RJ says:
October 25, 2016 at 8:30 pm
I have tried this several times with great luck. I now have an old workbook from last year. The
code works on some sheets but not all of them.
Reply
33 dagmid says:
October 28, 2016 at 8:02 am
Hi there,
thank you for your advice. if VBAProject has protected how can i remove password.
Thank you.
Reply
34 Abik says:
November 5, 2016 at 11:39 am
https://www.ablebits.com/office-addins-blog/2016/02/10/protect-unprotect-excel-sheet-pas... 8/15/2017
How to protect worksheets and unprotect Excel sheet without password Page 14 of 20
Reply
35 G says:
November 11, 2016 at 4:26 pm
If the file is on a server that has a rights management system you can also select people from
the address book to have read only access
Reply
Reply
37 reza says:
November 20, 2016 at 3:35 pm
like a lot
Reply
38 Umesh says:
November 21, 2016 at 8:11 am
Its Working..............
Reply
39 Rijo says:
November 26, 2016 at 10:39 am
Dear friend,
while iam trying RUN...getting the error message of
Compile error:
Invalid outside procedure
pls help
Reply
40 Kelly says:
December 1, 2016 at 12:26 pm
pls Help!
Reply
41 Vasanth KS says:
December 1, 2016 at 12:52 pm
Hi,
Reply
42 Bobby says:
December 7, 2016 at 10:14 am
https://www.ablebits.com/office-addins-blog/2016/02/10/protect-unprotect-excel-sheet-pas... 8/15/2017
How to protect worksheets and unprotect Excel sheet without password Page 15 of 20
Reply
43 James says:
December 12, 2016 at 3:08 pm
Very good articles. It works very well. Thank you very much.
Reply
44 Nalini says:
December 16, 2016 at 3:12 pm
Reply
45 Andy says:
December 27, 2016 at 8:02 pm
OMG, you saved me hours and hours of work. This VBI script worked like a charm ....thanks so
much.
Reply
I've been working on a workbook with several tabs with worksheets. I was trying to protect
columns and cells on on the various worksheets. The protection did not seem to be working
on a couple of the worksheets and I was experimenting trying to get it to work. Now I have
several functions(Protect & unprotect worksheet, protect & unprotect workbook, allow users
to edit ranges) highlighted in red and not functioning a all. How do I correct this?
Reply
47 Ade says:
January 2, 2017 at 10:27 pm
I have a protected worksheet and for got the password. The VB script is not responding when
i run the script on my excel 2010. it hangs and i have to go into window task manager to end
the run. Help
Reply
48 Sharma says:
January 3, 2017 at 5:15 am
How to permanently protect an excel sheet so that others cant look at the VBA functions? Is
there a way? I would like the hours of work put into my sheet to be protect from others
forever!
Seems the password protection can be easily broken. Please let me know.
Help!!
Reply
Reply
50 Derek K says:
January 9, 2017 at 12:37 am
Reply
https://www.ablebits.com/office-addins-blog/2016/02/10/protect-unprotect-excel-sheet-pas... 8/15/2017
How to protect worksheets and unprotect Excel sheet without password Page 16 of 20
Reply
52 Anne says:
January 11, 2017 at 11:54 am
HI,
I am working on a template that is workbook protected. I can't recall the password and i need
to change the name of a sheet. Please assist. Excel 2016
Thanks.
Reply
53 Joey A. says:
January 13, 2017 at 11:19 pm
I have to say, this is totally awesome! I RARELY leave comments like this, but I would
recommend this to anyone wanting to protect or unprotect excel sheets! Thank you guys so
much! :)
Reply
54 Maxwell says:
January 15, 2017 at 2:04 am
Reply
55 Raj says:
January 15, 2017 at 6:04 am
I tried the above steps but the excel is not responding even after waiting for 30 mins.
Reply
56 Nisar says:
January 15, 2017 at 7:20 am
Reply
Reply
58 ZAMEER says:
January 30, 2017 at 7:05 pm
Really It is Great . You are really awesome. Thank you soo much.
Reply
59 Joseph says:
February 7, 2017 at 3:59 pm
I have attendance sheet which is not allowing me to edit may be password protected and
don't have the password please help
https://www.ablebits.com/office-addins-blog/2016/02/10/protect-unprotect-excel-sheet-pas... 8/15/2017
How to protect worksheets and unprotect Excel sheet without password Page 17 of 20
Reply
60 Ambrica J says:
February 8, 2017 at 1:52 am
Reply
61 ratish says:
February 11, 2017 at 7:29 am
Reply
62 Rex says:
February 20, 2017 at 10:22 pm
Reply
63 Jeff says:
February 25, 2017 at 6:15 am
We use Excel 2010 at work for schedules. The worksheets containing work schedules are
protected from changes by employees with only managers having password access. Our issue
is that occasionally when employees go in to view the spreadsheet the file becomes "locked
for editing" by the employee. Managers can't get in to make changes. Even if the employee
signs in again, they often get the same message (that the file is locked for editing by
THEMSELF). We are interested in preventing employees from being able to place the file in
read only status at all, and secondly how do we get around the read only status when an
employee (who doesn't have the password) some how locks the file for editing. Thank you
Reply
THANKS A LOT
THANKS AGAIN
PREMAL JOSHI
Reply
65 jayeshkumar says:
March 7, 2017 at 7:37 pm
Reply
66 nur says:
March 15, 2017 at 7:03 am
your information is realy helpfull..I faced problem with my own excell..as i am inserting data,
excel stoped working and restart.. suddenly it become protected sheet and cannot do
anything to edit it..i am at my end because what to do, I do not protect the sheet and even
have the password to start with!!!!
Luckily I found out ways to unprotect sheet even without password..Now can smile happily!!!
Reply
https://www.ablebits.com/office-addins-blog/2016/02/10/protect-unprotect-excel-sheet-pas... 8/15/2017
How to protect worksheets and unprotect Excel sheet without password Page 18 of 20
67 Rameshkumar says:
March 19, 2017 at 5:52 am
Its awesome.
but i have protected 1 file. to open that file i need to give password.
Readonly option is not there, at that time what i need to do.
how to open that excell file ???????
Reply
Thanks.
It worked just as expected.
Reply
Thanks for the guide, easy to understand and do, works perfectly.
Reply
70 Mike says:
April 6, 2017 at 12:00 pm
To unprotect sheet in Excel 2013 file (.xlsx) just save the file as excel 200-2003 (.xls). Then you
can brake the sheet with VBA code. Works great! :)
Reply
71 steve says:
April 20, 2017 at 2:23 pm
Reply
72 Emma says:
April 21, 2017 at 12:44 pm
Reply
73 Bob says:
April 28, 2017 at 2:13 pm
Is there a way to unlock a file which is protect with password? (I mean when the entire file is
protected). I tried using the VBA code and it only worked when part of the workbook is
protected.
Thank you!
Reply
Svetlana,
Thank you very much for the VB editor instruction, I was able to follow and remove the PW. I
will bookmark this site for future use.
Reply
75 shawn says:
May 20, 2017 at 8:20 am
https://www.ablebits.com/office-addins-blog/2016/02/10/protect-unprotect-excel-sheet-pas... 8/15/2017
How to protect worksheets and unprotect Excel sheet without password Page 19 of 20
Reply
76 Fahad says:
May 23, 2017 at 7:56 am
Reply
77 Veeresh says:
May 26, 2017 at 4:49 pm
Thanks a lot
Reply
78 Meriam says:
June 19, 2017 at 4:13 pm
Reply
79 Saurabh says:
June 21, 2017 at 6:35 am
This is simply amazing... I am awestruck with the vba code that it unprotected the sheet. I
want to master vba but need a perfect training program and how can I write complex codes to
make my work more simpler... Please advise. Once again Thank you very much.
Reply
Hello, Saurabh,
Reply
This is Amazing. really help full, your are x-man. Once again Thank you very much.
Reply
81 Lahiru says:
July 26, 2017 at 2:47 am
Reply
Reply
83
https://www.ablebits.com/office-addins-blog/2016/02/10/protect-unprotect-excel-sheet-pas... 8/15/2017
How to protect worksheets and unprotect Excel sheet without password Page 20 of 20
Dwayn says:
August 8, 2017 at 2:39 pm
Thanks for this excellent write up. Thank you for sharing.
Reply
84 Sharmila says:
August 10, 2017 at 2:04 pm
Reply
Name
Send
Unfortunately, due to the volume of comments received we cannot guarantee that we will be
able to give you a timely response. When posting a question, please be very clear and concise.
We thank you for understanding!
https://www.ablebits.com/office-addins-blog/2016/02/10/protect-unprotect-excel-sheet-pas... 8/15/2017