To put an Excel file in read-only mode, the fastest way is to go to File > Info > Protect Workbook > Always Open Read-Only. This prompts anyone who opens the file to access it without making changes, though they can still bypass it if they choose. Depending on your goal—whether you want to suggest a read-only state, strictly enforce it with a password, or lock the file at the system level—different methods are required.
What You'll Need
- A computer with Microsoft Excel installed (Windows or macOS).
- The Excel workbook you wish to protect.
- Administrative permissions for the folder where the file is saved (if using the Windows File Explorer method).
- A secure password (if choosing the password-protected read-only method).
Step-by-Step
Depending on your specific needs, choose one of the following three methods. Note that menu labels may differ slightly depending on your version of Excel, your operating system, or your regional settings.
Method 1: The "Always Open Read-Only" Suggestion
This method is best for collaborative environments where you want to warn users that the file should not be edited, but you trust them to override the warning if necessary.
- Open the Excel workbook you want to set as read-only.
- Click on the File tab in the top-left corner of the ribbon.
- Select Info from the left-hand sidebar menu.
- Click the Protect Workbook button. This will open a dropdown menu of various protection options.
- Select Always Open Read-Only from the list.
- Excel will display a message confirming that the workbook will now open as read-only. Click OK.
- Save the workbook (Ctrl + S on Windows or Cmd + S on Mac) to apply the changes.
Method 2: Password-Protected Read-Only (Enforced)
Use this method if you want to prevent users from editing the file unless they possess a specific password. This is significantly more secure than the first method.
- Open the Excel workbook.
- Click on File and then select Save As.
- Choose the location where you want to save the file (e.g., Browse or This PC).
- In the Save As dialog box, look for the Tools button located next to the Save button at the bottom of the window.
- Click Tools and select General Options from the dropdown menu.
- A small window will appear with two password fields. Leave the "Password to open" field blank if you want anyone to be able to view the file.
- Enter a password into the Password to modify field.
- Check the box that says Read-only recommended if you want users to see a prompt suggesting they open it as read-only.
- Click OK, and you will be asked to re-enter the password to confirm it.
- Click Save to finalize the protection.
Method 3: Windows File System Read-Only Attribute
This method locks the file at the operating system level. It prevents any application, not just Excel, from saving changes to the original file. This is the most rigid form of read-only protection.
- Close the Excel file completely. You cannot change file attributes while the file is open in any program.
- Open File Explorer and navigate to the folder containing your Excel file.
- Right-click on the specific Excel file and select Properties from the context menu.
- In the General tab, look for the "Attributes" section at the bottom of the window.
- Check the box labeled Read-only.
- Click Apply and then click OK.
Common Mistakes
One of the most frequent mistakes is confusing "Read-Only Recommended" with actual file protection. When you use the "Always Open Read-Only" setting, Excel simply asks the user if they want to open the file as read-only. If the user clicks "No," they gain full editing access. If you need to stop unauthorized edits, you must use a password or the system-level attribute.
Another common error is forgetting to save the file after applying the "Always Open Read-Only" setting. Because this is a workbook property, the change is not permanent until the file is saved to the disk. If you close the program without saving, the setting will be lost.
Users often mistake "Protect Sheet" for "Read Only." Protecting a sheet (Review > Protect Sheet) prevents changes to specific cells within a worksheet, but it does not stop someone from adding new sheets or changing the file name. Read-only mode applies to the entire file entity, whereas sheet protection applies to the content inside the file.
Finally, some users attempt to set a file to read-only while it is still open. In Method 3 (the Windows File Explorer method), if the file is currently open in Excel, the operating system will likely throw an error saying the file is "in use" and cannot be modified. Always ensure the application is fully closed before adjusting file properties.
Tips
If you are sharing a file on a network drive or a shared folder, consider using the "Read-Only" attribute at the folder permission level. By adjusting the security settings of the folder, you can grant "Read" permissions to a group of users while reserving "Write" permissions for yourself. This is more efficient than managing individual files.
For those using OneDrive or SharePoint, the best way to implement read-only access is through the "Share" menu. Instead of using Excel's internal settings, click Share, enter the email address of the recipient, and change the permission from "Can edit" to "Can view." This cloud-based permission is more robust than local file settings because it is managed by the account identity rather than a password that can be shared.
When using a password to modify, keep a backup of the password in a secure password manager. If you lose the "Password to modify," you will be forced to open the file as read-only and save a new copy of the workbook to make changes, which can break version control if multiple people are working on the project.
If you only want to protect specific formulas while allowing users to enter data in other cells, do not use read-only mode. Instead, unlock the data-entry cells (Format Cells > Protection > uncheck Locked) and then protect the worksheet. This provides a functional "read-only" experience for the formulas while keeping the sheet interactive.
Troubleshooting
If you have set a file to read-only but can still edit it, first check if you are the owner of the file. In some network environments, the creator of the file always has write access regardless of the read-only attribute. Try opening the file from a different user account to verify the restriction.
If you are unable to save changes to a file that you believe is NOT read-only, check the file location. Files saved in "Protected View" (such as those downloaded from the internet or received via email) are automatically opened as read-only for security. You must click the "Enable Editing" button in the yellow bar at the top of the screen before you can make changes.
If you cannot find the "General Options" menu in the Save As dialog, ensure you are in the desktop version of Excel. The web-based version of Excel (Excel for the Web) does not support the "Password to modify" feature. You must open the file in the desktop app to set these specific restrictions.
If the Windows File Explorer read-only checkbox does not seem to work, check if the file is stored on a cloud-synced folder (like Dropbox or Google Drive). Some sync services overwrite local file attributes to ensure the cloud version remains the primary source of truth. In these cases, use the sharing settings within the cloud service's web interface.
Frequently Asked Questions
Can I remove read-only mode from a file I didn't create?
If the file is read-only via Windows attributes, you can remove it if you have administrative rights to the folder. If it is password-protected, you cannot remove the read-only status without the password.
Does read-only protect my data from being stolen?
No. Read-only mode prevents accidental or intentional editing; it does not prevent someone from reading, copying, or sharing the data within the file.
Will a read-only file still run macros?
Yes, macros can generally run in a read-only workbook. However, if the macro is designed to save data back into the workbook, the macro will fail or prompt the user to save a new copy of the file.
Is there a difference between "Read-Only" and "Final"?
Yes. Marking a file as "Final" (File > Info > Protect Workbook > Mark as Final) is a stronger version of "Always Open Read-Only." It tells the reader that the document is complete and discourages any further editing, though it can still be turned off by the user.
Can I make only one sheet read-only?
Read-only mode applies to the entire file. To make only one sheet read-only, use the "Protect Sheet" feature under the Review tab, which allows you to lock specific cells or the entire sheet while leaving other sheets editable.