File Cannot Open

How to Fix Excel Cannot Access the File Read-Only or Encrypted Error

John WilsonJohn Wilson Nov 3, 2026 869 views

Question details

The user is unable to open an Excel workbook due to an error message indicating the file cannot be accessed, possibly because of malware, encryption, or restrictive file permissions.

How to Fix "Excel Cannot Access the File" Read-Only or Encrypted Error
Product
Microsoft Excel
Device & OS
not provided
Scenario
Attempting to open an Excel spreadsheet that has been blocked by the system, corrupted, or flagged by security software.
Observed behavior
Excel displays the error message: "Excel cannot access the file. The document may be read-only or encrypted."
Before you start

Ensure your computer's antivirus software is active and fully updated. Do not force open or bypass warnings for files downloaded from untrusted sources, as they may contain malicious macros.

Solution 1Recommended

Scan for Malware and Unblock File Permissions

Verify that the file is safe and adjust Windows properties to allow Excel to read the document.

Windows and modern antivirus programs will block access to files that exhibit suspicious behavior or contain known malware signatures. Verifying the file's safety and unblocking it in the properties menu is the safest first step.

1
Scan the file

Right-click the problematic Excel file in Windows Explorer and select your antivirus software to perform a targeted malware scan.

2
Open file properties

If the security scan comes back clean, right-click the file again and select 'Properties' from the context menu.

3
Unblock the file

Under the 'General' tab, look for a security warning at the bottom. If you see a checkbox labeled 'Unblock', check it.

4
Disable Read-only attribute

In the same 'General' tab, ensure the 'Read-only' checkbox in the Attributes section is unchecked, then click 'Apply' and 'OK'.

Scan for Malware and Unblock File Permissions
Malware Warning: If your antivirus detects malware during the scan, immediately quarantine or delete the file. Do not attempt to bypass the warning to open it.
Free Microsoft Office alternative

Open and Edit Spreadsheets Safely with WPS Office

If you are facing persistent issues with Microsoft Excel or simply want a lighter, highly secure alternative, WPS Office provides a robust spreadsheet tool. It is fully compatible with Microsoft Office formats and offers a smooth, reliable editing experience.

  1. 1. Download and Install: Download WPS Office from the official website and complete the quick installation.
  2. 2. Launch WPS Spreadsheets: Open the WPS Office application and select the 'Spreadsheets' module.
  3. 3. Open your file: Drag and drop your spreadsheet into the workspace or use 'File' > 'Open' to access your data.
Fully compatible with Microsoft Excel formats (.xlsx, .xls, .csv).Lightweight installation that runs smoothly on older or slower computers.Built-in document security features to keep your spreadsheets safe.Free to use with a familiar, easy-to-navigate tabbed interface.
microsoft office alternative - wps office

Frequently Asked Questions

Why does Excel say my file is encrypted when I didn't set a password?

This can happen if the file was corrupted during a download or transfer, if a third-party application locked the file, or if ransomware has maliciously encrypted the files on your computer without your knowledge.

How do I fix an Excel file that is stuck in read-only mode?

Right-click the file in File Explorer, select 'Properties', and uncheck the 'Read-only' attribute. Additionally, ensure the file is not stored on a read-only network drive and that no other user currently has the file open.

Can I safely open an Excel file if my antivirus quarantined it?

It is highly discouraged. If your antivirus quarantined the file, it likely contains harmful macros or viruses. You should request a clean, safe copy from the original sender instead of restoring the infected file.

How can I disable Protected View in Excel for trusted files?

Open Excel, go to File > Options > Trust Center > Trust Center Settings > Protected View. You can uncheck the options here to disable it, though it is strongly recommended to only do this for files from completely trusted sources.