To make an Excel document read-only, the fastest method is to use the Save As menu and check the Read-only recommended box in General Options. This prevents accidental edits by prompting users to open the file in read-only mode, though it is a soft restriction that users can bypass. For a harder restriction, you can set the file properties in Windows File Explorer to Read-only, which prevents the file from being saved over without changing the system attribute first.

What You'll Need

  • A computer with Microsoft Excel installed (Windows or macOS).
  • The specific Excel workbook (.xlsx or .xlsb) you wish to protect.
  • Administrative permissions for the folder where the file is stored (if using the File Explorer method).

Step-by-Step

Depending on your goal—whether you want to suggest that others don't edit the file or strictly forbid saving changes to the original—there are three primary ways to achieve a read-only state. Note that menu labels may differ slightly based on your version of Office or your operating system.

Method 1: The "Read-Only Recommended" Setting

This method is best for shared files where you want to warn users that the document should not be changed, but you don't want to lock them out entirely.

  1. Open the Excel workbook you want to set as read-only.
  2. Click on the File tab in the top-left corner of the ribbon.
  3. Select Save As from the left-hand sidebar.
  4. Click Browse to open the file explorer window where you can choose the save location.
  5. In the Save As dialog box, look for the Tools button located next to the Save button at the bottom.
  6. Click Tools and select General Options from the dropdown menu.
  7. Check the box labeled Read-only recommended.
  8. Click OK.
  9. Enter a filename if necessary and click Save. If prompted to replace the existing file, click Yes.

Method 2: Setting a Password for Modification

If you want to ensure that only people with a password can edit the file, use the General Options menu to add a write-password.

  1. Follow the steps above: File > Save As > Browse > Tools > General Options.
  2. In the Password to modify field, type a password.
  3. Leave the "Password to open" field blank if you want anyone to be able to view the file, but only authorized users to edit it.
  4. Click OK and confirm the password by typing it again in the confirmation box.
  5. Click Save. Now, when someone opens the file, Excel will ask for the password. If they don't have it, they must click the "Read Only" button to view the data.

Method 3: Windows File System Read-Only Attribute

This is a system-level lock. It prevents the file from being saved over regardless of the settings inside Excel itself.

  1. Close the Excel document completely. You cannot change this attribute while the file is open.
  2. Open File Explorer and navigate to the folder containing your Excel file.
  3. Right-click on the file and select Properties from the context menu.
  4. In the General tab, look at the "Attributes" section at the bottom.
  5. Check the box next to Read-only.
  6. Click Apply and then click OK.
  7. The file is now locked at the OS level. If a user attempts to save changes, Excel will force them to save the file under a different name (Save As).

Common Mistakes

One of the most frequent errors is confusing "Read-only recommended" with a hard lock. Many users check the recommended box and are surprised when a colleague still manages to edit the file. The "recommended" setting is merely a prompt; it asks the user if they want to open it as read-only, but it allows them to click "No" and proceed with editing. If you need a strict barrier, you must use a password or the Windows file attribute.

Another common mistake is forgetting that "Read-only" does not mean "Protected." A user can open a read-only file, copy all the data into a brand new workbook, and save that new version. Read-only settings protect the original file from being overwritten, but they do not prevent the data within the file from being copied or stolen. For data protection, you would need to use "Protect Sheet" or "Protect Workbook" options found under the Review tab.

Users also often forget to close the file before attempting to change the file properties in Windows. If the file is currently open in Excel, the operating system will likely throw an error saying "This action cannot be completed because the file is open in another program," which can lead users to believe the feature is broken.

Tips

If you are collaborating with a team and want to prevent accidental overwrites without using passwords, consider using OneDrive or SharePoint. These platforms use "Co-authoring," which handles file locking automatically. When someone is editing a specific cell, that cell is locked for others, preventing the "File is in use" error common in older versions of Excel.

For those who want to protect specific formulas while allowing users to enter data in certain cells, don't use a global read-only setting. Instead, select the cells that should be editable, right-click them, select Format Cells, go to the Protection tab, and uncheck Locked. Then, go to the Review tab and click Protect Sheet. This creates a hybrid environment where the structure is read-only, but the data entry points remain open.

When using the Windows File Explorer method on a network drive, be aware that permissions are managed by the server. If you don't have "Write" permissions for that folder, you might not be able to toggle the read-only attribute. In such cases, you will need to contact your IT administrator to change the folder permissions.

Troubleshooting

The file is still editable after I set it to read-only: Check which method you used. If you used "Read-only recommended," the user simply clicked "No" when prompted. To fix this, use a "Password to modify" or the Windows File Properties method. If you used the Windows File Properties method and it's still editable, ensure you clicked "Apply" and that you aren't editing a temporary copy of the file.

I cannot remove the read-only attribute: If the checkbox in File Properties is greyed out, you likely do not have administrative ownership of the file or the folder. Try moving the file to your local Documents folder to see if you can change the attribute there. If the file is on a corporate network, the read-only status may be enforced by a Group Policy set by your IT department, which cannot be overridden locally.

Excel says the file is read-only, but I didn't set it that way: This usually happens for one of three reasons. First, the file might be stored in a "Protected View" because it was downloaded from the internet or an email attachment. Click the "Enable Editing" button in the yellow bar at the top. Second, another user may have the file open on a shared network, which automatically locks it for everyone else. Third, the file may be saved in a folder with restricted permissions.

I forgot the password to modify the file: Microsoft does not provide a built-in way to recover passwords for modification. If you have lost the password, your only option is to open the file as read-only, then use Save As to save a copy of the workbook under a new name. This new copy will not have the password restriction, allowing you to edit it freely.

Frequently Asked Questions

Can I make only one sheet read-only?

Yes, but this is done via "Protect Sheet" under the Review tab, not the "Read-only" file setting. The read-only file setting applies to the entire workbook.

Does read-only work on Mac?

Yes. While the File Explorer steps are for Windows, macOS users can right-click the file in Finder, select "Get Info," and check the "Locked" box to achieve the same result.

Will a read-only file stop macros from running?

No. Macros can still execute in a read-only workbook, although the macro cannot save changes back to the original file unless it has the password or the attribute is removed.

Is a read-only file the same as a protected sheet?

No. A read-only file prevents the entire document from being saved over. A protected sheet allows the file to be saved but prevents specific cells or formulas from being changed.

Can I set a file to read-only using a keyboard shortcut?

There is no direct shortcut for the read-only attribute, but you can use F12 to quickly open the "Save As" dialog, which is the first step in setting a modification password.