How to Fix Excel Cannot Access the File Read-Only or Encrypted Error
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.

- 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."
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.
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.
Right-click the problematic Excel file in Windows Explorer and select your antivirus software to perform a targeted malware scan.
If the security scan comes back clean, right-click the file again and select 'Properties' from the context menu.
Under the 'General' tab, look for a security warning at the bottom. If you see a checkbox labeled 'Unblock', check it.
In the same 'General' tab, ensure the 'Read-only' checkbox in the Attributes section is unchecked, then click 'Apply' and 'OK'.

Restore a Clean Copy from Backup
If the file is damaged, permanently locked, or encrypted by ransomware, restoring from a trusted backup is the best recovery method.
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. Download and Install: Download WPS Office from the official website and complete the quick installation.
- 2. Launch WPS Spreadsheets: Open the WPS Office application and select the 'Spreadsheets' module.
- 3. Open your file: Drag and drop your spreadsheet into the workspace or use 'File' > 'Open' to access your data.

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.




