Setting a password to open an Excel workbook as read-only prevents others from making changes unless they know the password, while still allowing them to view and copy content. This is useful for sharing reports, financial data, or templates without risking accidental or unauthorized edits. You need Microsoft Excel 2010 or later (Windows or Mac) and a file you want to protect. No additional tools or plugins are required.
What You'll Need
- A Microsoft Excel file (.xlsx or .xls) you want to protect
- Microsoft Excel 2010 or later (Windows or macOS)
- A strong password you can remember (at least 8 characters, including letters and numbers)
Step-by-Step
- Open the Excel workbook you want to protect.
- Click the File tab in the top-left corner of the Excel window.
- Select Save As from the left-hand menu.
- Choose the location where you want to save the file (e.g., Desktop, OneDrive, or a folder).
- In the Save As dialog box, click the Tools button near the bottom-right corner (it appears as a small arrow or dropdown next to the Save button).
- From the dropdown menu, select General Options.
- In the General Options window, you’ll see two password fields: Password to open and Password to modify.
- Leave the Password to open field blank. This ensures the file can be viewed without a password.
- Click inside the Password to modify field and type your chosen password. Use a mix of uppercase letters, lowercase letters, and numbers for better security.
- Click OK.
- You’ll be prompted to retype the password to confirm it. Type it again exactly as before and click OK.
- Click Save in the main Save As dialog box.
- Close the file and reopen it to test the protection. You should be able to open and view the file normally, but when you try to make any edits (like typing in a cell or deleting a row), Excel will display a message saying the file is read-only and prompt you to save a copy if you wish to modify it.
Common Mistakes
- Entering the password in the wrong field — putting it in Password to open instead of Password to modify will force users to enter a password just to view the file, which defeats the purpose of read-only access.
- Forgetting the password — there is no way to recover a lost password for Excel files. If you forget it, you cannot remove the restriction without specialized tools, which may violate terms of service.
- Not saving the file after setting the password — if you skip clicking Save after entering the password, the protection won’t be applied.
- Using a weak password like "123456" or "password" — this makes it easy for someone to guess or crack the password, defeating the purpose.
- Trying to protect a file opened from a read-only source (like email attachment or network drive) without first saving it locally — Excel may not allow you to access the Tools menu if the file is locked by the system.
Tips
- Store your password securely using a trusted password manager, never in plain text on your desktop or in an email.
- Always test the protection by closing and reopening the file before sending it to others — verify you can view it but cannot edit it without being prompted to save a copy.
- Use the "Save As" function to create a protected copy instead of overwriting the original — this gives you a backup in case something goes wrong.
- If you need to edit the file later, open it in Excel, click File > Info > Protect Workbook > Encrypt with Password, then remove the password in the General Options dialog.
- For team collaboration, consider using Excel Online with shared workbooks and permission levels instead of password protection for better version control.
- Remember that read-only protection does not encrypt the file — someone with technical skills can still extract data using third-party tools. For sensitive data, combine this with file encryption (e.g., BitLocker or FileVault) on your device.
Troubleshooting
- "Tools" button is missing. Make sure you’re using Excel 2010 or later. If you’re on Excel for Mac, the button might be labeled "Security" instead of "Tools" — click it and select "Password Protection". If you’re using Excel Online or Excel Mobile, password protection for read-only access is not supported — use the desktop app instead.
- Excel says the password is incorrect after I retype it. Double-check for accidental capitalization, spaces, or keyboard layout issues (e.g., NumLock on/off). Try retyping slowly. If it still fails, you may have entered a different password during confirmation — you’ll need to start over.
- I can still edit the file after setting the password. You likely saved the file before applying the password. Close Excel completely, reopen the file, and repeat Steps 2–13. Ensure you clicked Save after confirming the password.
- I can’t find the "General Options" menu. Make sure you clicked "Tools" after selecting "Save As" — not after clicking "Save". The Tools button only appears in the Save As dialog, not in the normal file menu.
- The file is still editable on another computer. Check that the protected version is the one you sent. Sometimes people accidentally send the original unsecured file. Compare file sizes — the protected version will be slightly larger due to encryption metadata.