If Excel says it cannot open a file in Protected View, the file is usually blocked by a security setting, a corrupted Office cache, or a problem with the file itself. The quickest fix is to close Excel, clear the Office cache, and reopen the file. If that doesn't work, check the file's properties and the Trust Center settings. This guide walks you through each step, explains what causes the error, and shows you how to safely open files that are stuck.

What You'll Need

  • Access to the affected Excel file (either on your computer or a network drive).
  • Administrator rights on your Windows PC (to clear the cache and change Trust Center settings).
  • Your Microsoft account credentials if you use OneDrive or SharePoint (to re-authenticate).
  • Approximately 10–15 minutes of time.

Step-by-Step

  1. Close Excel completely. Make sure no Excel windows are open, including files that appear to be minimized. Check the system tray (bottom-right corner of the taskbar) for any Excel icons and close them.
  2. Clear the Office cache. The Office cache stores temporary files that can become corrupted. Press Windows key + R to open the Run dialog, type %localappdata%\Microsoft\Office\16.0\OfficeFileCache and press Enter. (If you have a different Office version, the number may be 15.0 or 14.0 – just look for the folder with the highest number.) Delete all files inside that folder. If you get a “file in use” error, restart your PC and try again.
  3. Reopen Excel and try the file again. Double-click the file normally. If it opens now, you’re done. If not, move to the next step.
  4. Check the file’s properties. Right-click the file in File Explorer and select Properties. At the bottom of the General tab, look for a Security section with an Unblock checkbox. If it’s there, check it and click OK. This is common for files downloaded from the internet or received via email.
  5. Open the file from within Excel. Launch Excel, go to File > Open > Browse, and navigate to the file. Select it and click the arrow next to the Open button, then choose Open in Protected View. If that works, you can then click Enable Editing on the yellow bar at the top. If you get the same error, continue.
  6. Adjust Trust Center settings. In Excel, go to File > Options > Trust Center > Trust Center Settings. Under Protected View, uncheck all three boxes (they are usually checked by default). Click OK on each dialog. This disables Protected View entirely, so only do this temporarily and re-enable it after you’ve opened the file.
  7. Open the file with the “Open and Repair” feature. In Excel, go to File > Open > Browse, select the file, but instead of clicking Open, click the arrow next to the Open button and choose Open and Repair. This will attempt to repair the file. If it fails, try Open and Repair > Extract Data to pull the raw data out.
  8. Move the file to a local drive. If the file is on a network share, OneDrive, or a USB drive, copy it to your Desktop or Documents folder and try opening it from there. Sometimes network permissions or sync issues cause Protected View errors.
  9. Check for file corruption. If the file still won’t open, create a new Excel workbook and try to import the data using Data > Get Data > From File > From Excel Workbook. This can sometimes bypass the Protected View error.
  10. Repair Office installation. As a last resort, go to Control Panel > Programs and Features, select Microsoft Office, and click Change. Choose Quick Repair first, and if that doesn’t help, use Online Repair. This will fix any corrupted Office files.

Common Mistakes

  • Not clearing the cache completely. If you only delete some files, the corruption remains. Make sure you delete everything in the OfficeFileCache folder.
  • Forgetting to unblock the file. The Unblock checkbox is easy to miss if you don’t scroll to the bottom of the Properties dialog. Always check there.
  • Disabling Protected View permanently. This is a security risk. If you turn it off, you won’t be warned about potentially dangerous files. Only disable it to open a trusted file, then re-enable it.
  • Opening the file from a synced folder. OneDrive or SharePoint files that are not fully downloaded to your device can trigger Protected View errors. Make sure the file is “Available offline” (right-click the file in File Explorer and choose “Always keep on this device”).

Tips

  • Use the “Open in Protected View” option deliberately. If you trust the source, you can open it in Protected View and then click “Enable Editing” – this is safer than disabling the feature.
  • Keep Excel updated. Go to File > Account > Update Options > Update Now to ensure you have the latest fixes for Protected View bugs.
  • Check if the file is encrypted or password-protected. If the file has a password, you might need to enter it before Protected View can open it. If you don’t have the password, you cannot open it.
  • Try a different file format. If the file is .xls (old format), save it as .xlsx from a working copy if possible. Older formats sometimes trigger Protected View more often.

Troubleshooting

If the file still won’t open after all steps:

  • Restart your computer. A full restart clears memory and resets Office services.
  • Check if the file is actually corrupt. Try opening a different Excel file. If other files work, the problem is specific to that file. You may need to recover an earlier version from File History or a backup.
  • Check your antivirus software. Some antivirus programs block files in Protected View. Temporarily disable your antivirus (if you know how) and try opening the file. If it works, add an exception for Excel or the file location.
  • Run Excel in Safe Mode. Press Windows key + R, type excel /safe, and press Enter. This opens Excel without add-ins. Try opening the file. If it works, a third-party add-in is causing the problem. Disable add-ins via File > Options > Add-Ins.
  • Check the file’s permissions. If the file is on a network, make sure you have read/write permissions. If you don’t, ask the network administrator.

Frequently Asked Questions

Why does Excel say it cannot open in Protected View?

This error usually means the file is blocked by a security setting (like the file’s “Mark of the Web” from being downloaded) or the Office cache is corrupted. It can also happen if the file is damaged or if Excel’s Protected View settings are misconfigured.

Is it safe to disable Protected View?

Disabling Protected View removes a safety layer that protects your computer from malicious files. Only do it temporarily for a file you absolutely trust, and re-enable it afterward. If you disable it permanently, you increase your risk of opening a harmful file.

Will I lose data if I use Open and Repair?

No, Open and Repair tries to fix the file without deleting your data. In rare cases, it may not recover everything, but it’s the best option before trying to extract data. Always keep a backup copy of the file before repairing.

Why does this happen only with files from the internet?

Windows adds a “Mark of the Web” to files downloaded from the internet or received via email. Excel’s Protected View is triggered by this mark. Unblocking the file in Properties removes the mark and allows Excel to open it normally.

Can I prevent this error in the future?

Yes, after you open a file successfully, you can add the folder to Excel’s Trusted Locations: File > Options > Trust Center > Trust Center Settings > Trusted Locations. Add the folder where you store trusted files. This will bypass Protected View for files in that folder.

What if the file is password-protected?

You must enter the correct password to open the file. If you don’t have it, Excel cannot open it in any view. Contact the file’s creator for the password.