Excel opens files in Protected View because Windows or Office has flagged them as coming from an untrusted location, such as an email attachment or a download. To stop it, you can either move the file to a trusted location (like your Documents folder), add the file's folder to Excel's Trusted Locations list, or unblock the individual file in Windows. The quickest fix for a single file is to right-click it in File Explorer, choose Properties, and tick Unblock. For ongoing relief, add the folder to Trusted Locations so Excel stops asking every time.
What You'll Need
- A Windows PC with Excel installed (the steps below are for Windows; Mac Excel handles this differently and is covered in the FAQ).
- The file or folder that keeps opening in Protected View.
- Administrator rights if you need to change Trusted Locations for all users on the PC.
Step-by-Step
- Identify why the file is flagged. Open Excel and look at the yellow Protected View bar at the top. It usually says the file came from an internet location or an email attachment. This tells you which fix to use. Note that menu labels can differ slightly by Excel version, device and region.
- Unblock a single file. Close Excel. In File Explorer, right-click the file, choose Properties, and on the General tab look for a Security section at the bottom. Tick the Unblock checkbox and click OK. Reopen the file in Excel. This works for files you downloaded or received by email.
- Move files to a trusted folder. If you keep files in Downloads, move them to your Documents folder. Excel treats your local Documents folder as trusted by default, so files there usually open normally.
- Add a folder to Trusted Locations. In Excel, go to File > Options > Trust Center > Trust Center Settings > Trusted Locations. Click Add new location, browse to the folder that holds your files, and tick Subfolders of this location are also trusted if you want everything inside it covered. Click OK twice. Close and reopen Excel.
- Check the Protected View settings. Still in Trust Center Settings, select Protected View. You will see three checkboxes: files from the internet, files in unsafe locations, and email attachments. If you regularly open files from a known safe source and understand the risk, you can clear the relevant checkbox. Microsoft recommends leaving these on unless you have a specific reason, so only change the one that matches your situation.
- Test the change. Open the file that was causing trouble. If the yellow bar is gone, the fix worked. If it still appears, go to the next troubleshooting section.
Common Mistakes
- Unblocking the wrong file. The Unblock checkbox only appears on files that Windows has marked as downloaded. If it is missing, the file is not blocked at the file level and you need the Trusted Locations route instead.
- Adding a whole drive as trusted. Adding C:\ or a network share as a Trusted Location removes a key security layer. Add only the specific folder you use for work files.
- Clearing all three Protected View checkboxes. This turns off protection for every file, including genuinely malicious ones. Change only the setting that matches where your files come from.
- Forgetting to restart Excel. Trust Center changes usually take effect after you close and reopen Excel, so test with a fresh window.
- Assuming it is a virus. Protected View is a safety feature, not an error. It appears because Excel cannot verify the file's origin, not because the file is infected.
Tips
- Keep a dedicated folder such as Documents\Excel Files and add it to Trusted Locations once. Files saved there will open without the yellow bar.
- If you receive files regularly from the same colleague, ask them to send them via a shared folder you have already trusted rather than as email attachments.
- Use Enable Editing on the yellow bar when you trust a one-off file. This opens it for the current session without changing any settings.
- Check whether your organisation manages Excel settings through group policy. In that case, Trust Center options may be greyed out and your IT administrator controls them.
Troubleshooting
If the file still opens in Protected View after adding its folder to Trusted Locations, confirm the file is actually inside that folder and not in a subfolder you did not include. Reopen Trust Center Settings and check that the path is listed exactly.
If the Trust Center options are greyed out, your PC is likely managed by an organisation. Contact your IT administrator; you cannot override those settings locally.
If only files from email open in Protected View, check the Email attachments checkbox under Protected View settings. Clearing it stops the prompt for attachments, but only do this if you trust your email sources.
If Excel itself will not start or crashes when opening a file, repair Office: go to Settings > Apps > Installed apps, find Microsoft 365 or Office, choose Modify, and run a Quick Repair. This does not delete your files.
If the problem affects every file on the PC, check whether the files are on a network drive or a synced cloud folder. Files in some cloud-sync folders can be treated as internet locations. Copy one to your local Documents folder and test.
Frequently Asked Questions
Is Protected View dangerous?
No. It is a safety feature that opens files in a restricted mode so macros and active content cannot run until you enable editing.
Does this work on Mac Excel?
Mac Excel does not have the same Protected View feature. If files open read-only on a Mac, check the file's permissions or whether it was downloaded from the internet; macOS handles quarantine differently.
Will disabling Protected View for a folder affect other Office apps?
Trusted Locations are shared across Word, Excel, PowerPoint and other Office apps, so a folder you trust in Excel is also trusted in Word.
Can I stop Protected View for files on a USB drive?
Removable drives are often treated as unsafe locations. You can add the drive letter as a Trusted Location, but only do this for drives you control.
Why does the yellow bar say the file is from an internet location when I created it?
If you saved the file to a synced cloud folder or downloaded it from a browser, Windows may tag it as internet-origin. Moving it to a local folder and unblocking it resolves this.
Does enabling editing once stop Protected View for that file forever?
No. Enable Editing applies only to the current session. To make it permanent, unblock the file or add its folder to Trusted Locations.