How to Unlock a Document for Editing in Excel
In this article
To unlock an Excel document for editing, you typically need to remove one of three restrictions: the file may be marked as Final, it may be protected by a password to modify, or it may be in Protected View because it came from an untrusted location. The fix is to click Edit Anyway if prompted, or go to File > Info > Protect Workbook and remove the restriction. If the file is password-protected, you must enter the password; there is no legitimate way to bypass it without it.
What You'll Need
- The Excel file you want to edit, saved on your computer or in a cloud location you can access.
- The password, if the file is protected with one. Without it, you cannot unlock the file for editing.
- A current version of Excel for Windows, Mac, or the web. Menu labels can differ slightly by version, device, or region.
Step-by-Step
- Open the file in Excel. If a yellow bar appears at the top saying the file is in Protected View, click Enable Editing. This is the most common unlock for files downloaded from the internet or received as email attachments.
- Check for Mark as Final. Go to File > Info. If you see a button labeled Mark as Final with a note that the file is marked as final, click Mark as Final again to toggle it off. (In some versions, the button may read Unmark as Final.) Then save the file.
- Remove password protection to modify. Still in File > Info, look for Protect Workbook. If the file requires a password to open or modify, you will see an option like Encrypt with Password or Protect Workbook with a password set. Click it, clear the password field, and click OK. You will need to know the current password to do this.
- Unprotect the workbook structure or sheets. If you can open the file but cannot add, delete, or rename sheets, the workbook structure is protected. Go to Review > Protect Workbook and click it to turn off protection. If individual sheets are locked, go to Review > Protect Sheet and click it to unprotect. Enter the password if prompted.
- Disable Read-Only recommended. When you open the file, if Excel asks whether to open read-only, choose No. To remove the recommendation permanently, go to File > Save As, click Tools next to the Save button, choose General Options, and uncheck Read-only recommended. Save the file.
- Save the unlocked file. After removing any restriction, save the workbook (Ctrl+S or Command+S). If the file was originally read-only on disk, use File > Save As to save a new editable copy to a location where you have write permission.
Common Mistakes
- Confusing Protected View with password protection. Protected View is a security feature for untrusted files; clicking Enable Editing is enough. Password protection requires the password.
- Forgetting to unprotect sheets individually. Unprotecting the workbook structure does not unprotect individual worksheets. Check both Review > Protect Workbook and Review > Protect Sheet.
- Saving over a read-only file. If the file is marked read-only on disk (right-click > Properties > Read-only), Excel cannot save changes to it. Clear the read-only attribute in file properties or save a copy elsewhere.
- Assuming Mark as Final is security. Mark as Final only sets a recommendation; anyone can toggle it off. It does not encrypt or password-protect the file.
- Using online "unlock" tools. These are often scams or malware. Only remove protection using Excel's built-in features and the correct password.
Tips
- If you frequently receive files that open in Protected View, you can adjust Trust Center settings, but only for files from sources you trust. Go to File > Options > Trust Center > Trust Center Settings > Protected View and clear the checkboxes as needed. Be cautious: this lowers security.
- To check if a sheet is protected, look at the Review tab; the Protect Sheet button will appear pressed or highlighted when protection is on.
- If you need to share an editable copy without giving out your password, save a copy and remove protection from the copy, then share that copy.
- For files stored on OneDrive or SharePoint, check permissions: you may have view-only access. Ask the owner to grant edit permissions.
Troubleshooting
- "Enable Editing" is greyed out or missing. The file may be password-protected or you may lack permission. Check with the file owner.
- You don't know the password. Excel does not provide a recovery method. You must obtain the password from the person who set it. Do not use third-party cracking tools; they are unsafe and often illegal.
- The file opens as read-only and Save is disabled. Check the file's properties in File Explorer (Windows) or Finder (Mac) to see if the read-only attribute is set. Also check if the file is in a folder where you have write access.
- You can edit but changes won't save. The file may be locked by another user or process. Close the file, ensure no one else has it open, and try again. If it's on a network share, check with your administrator.
- Protected View keeps appearing for a trusted file. Add the file's location to Trusted Locations in Trust Center settings, but only if you are certain the location is safe.
Frequently Asked Questions
Can I unlock an Excel file without the password?
No, not legitimately. Excel's password protection is designed to prevent unauthorized access. If you don't have the password, you must contact the file owner. There is no built-in recovery.
What is the difference between Protect Workbook and Protect Sheet?
Protect Workbook prevents changes to the structure, such as adding, deleting, or renaming sheets. Protect Sheet prevents changes to the contents of a specific worksheet. Both can be password-protected.
Why does Excel open my file in Protected View?
Protected View is a security feature that opens files from the internet, email attachments, or other potentially unsafe locations in a read-only mode. Click Enable Editing to unlock it.
How do I remove "Mark as Final"?
Go to File > Info and click the Mark as Final button again to toggle it off. Then save the file.
Can I edit a read-only file?
If the file is read-only on disk, you cannot save changes to it directly. You can use Save As to save a copy with a new name or in a different location where you have write permission.
Does unprotecting a sheet remove data validation or formulas?
No, unprotecting a sheet only removes the restriction on editing cells; it does not alter the content, formulas, or data validation rules.