How To Fix An Excel File Stuck In Protected View (2026)
An Excel file that will not leave Protected View is read-only, so you cannot edit, save or print it.
Most of the time one click on the message bar fixes it.
These steps come from Microsoft Support and cover the cases where that click is missing or does nothing.
Table of Contents
- Quick answer: leave Protected View
- Why Excel opens files in Protected View
- Fix 1: select Enable Editing
- Fix 2: use Edit Anyway on a red bar
- Why old Excel formats fail validation
- If your administrator blocks it
- Fix 3: review the Protected View settings
- Trusted documents and why the bar returns
- If the file is still read-only
- Other things Protected View changes
- Files from someone else's OneDrive
- When you chose Protected View yourself
- Check before you enable editing
- Word and PowerPoint files
- Official sources
- More Word, Excel and PowerPoint guides
Quick answer: leave Protected View
Select Enable Editing on the yellow message bar, or File > Edit Anyway if the bar is red.
| Message bar | What to do |
|---|---|
| Yellow | Select Enable Editing |
| Red | Select File > Edit Anyway, only if you trust the file |
| Nothing works | Your administrator may have a rule that blocks it |
Why Excel opens files in Protected View
Protected View opens a file read-only so a harmful file has less chance to damage your PC.
| Reason | Message you see |
|---|---|
| Downloaded from the internet | Be careful – files from the Internet can contain viruses |
| Email attachment from an unsafe sender | Be careful – email attachments can contain viruses |
| Unsafe folder such as Temporary Internet Files | This file was opened from a potentially unsafe location |
| File failed validation | Microsoft 365 has detected a problem with this file |
| You chose Open in Protected View | This file was opened in Protected View |
| Someone else's OneDrive | Be careful – This file is from someone else's OneDrive |
Editing, saving and printing all need you to leave Protected View first.
Fix 1: select Enable Editing
- Open the workbook in Excel.
- Look at the yellow message bar under the ribbon.
- Select Enable Editing.
After you leave Protected View, Microsoft treats the file as a trusted document.
Do this only when you know where the file came from.
Fix 2: use Edit Anyway on a red bar
A red message bar means the file failed a check or editing is blocked.
- Select the File tab.
- Select Edit Anyway in the Backstage view.
Microsoft says to use this only if you trust the source and the content.
If the file may be damaged, see how to fix a corrupt Excel file that will not open.
Why old Excel formats fail validation
Validation failures commonly affect Excel 97-2003 files.
| Format | File extensions |
|---|---|
| Excel 97-2003 | .xls, .xla, .xlt, .xlm, .xlb |
A failed check can also mean the file is damaged by a failing disk, a faulty program or an interrupted download.
Microsoft advises editing only if you know the sender and the file looks normal, and deleting it otherwise.
If your administrator blocks it
The document author or your system administrator may have rules that stop you from leaving Protected View.
Microsoft says in that case you may not be able to exit Protected View at all.
Ask your IT department, since this is a policy you cannot change from your own settings.
Microsoft also lists a File Block setting that can stop editing entirely.
Fix 3: review the Protected View settings
You can check which kinds of files open in Protected View in the Trust Center.
- Select File > Options > Trust Center > Trust Center Settings.
- Select Protected View.
- Review the options listed below.
| Option | What it covers |
|---|---|
| Files originating from the Internet | Downloaded files |
| Files in potentially unsafe locations | Folders such as Temporary Internet Files |
| Outlook attachments | Email attachments |
| Untrusted text-based files (.csv, .dif, .sylk) | Excel only, from untrusted locations |
| Untrusted database files (.dbf) | Excel only, from untrusted locations |
Microsoft advises checking with your administrator before you change these.
Trusted documents and why the bar returns
A file you trusted opens without the message bar and does not open in Protected View.
The warning returns if the file has been moved since you trusted it.
A file cannot become trusted if it was opened from an unsafe location such as the Temp folder.
To clear the list, go to File > Options > Trust Center > Trust Center Settings > Trusted Documents and select the option that clears all trusted documents.
If the file is still read-only
A file can be read-only for reasons other than Protected View.
| Cause | Fix |
|---|---|
| Read-only file attribute | Right-click the file, choose Properties, clear Read-only, select OK |
| Antivirus opens files read-only | Check your antivirus settings |
| OneDrive storage full | Free space or check Manage storage |
| Unlicensed Office | Fix the activation error |
Our guide to an Excel file locked for editing covers the other read-only cases.
Other things Protected View changes
Cloud fonts do not download in Protected View, so text can look different until you enable editing.
Add-ins may run but not work properly.
If you use a screen reader, press F7 to turn on caret browsing and read the text without edit mode.
If Application Guard for Microsoft 365 is on, files that opened in Protected View open there instead.
Files from someone else's OneDrive
A file stored in another person's OneDrive, such as one shared with you, opens in Protected View in Microsoft 365 apps.
Microsoft says that after you select Trust Documents From This Person, later files from that OneDrive location stop opening in Protected View.
Use that option only for people you know.
When you chose Protected View yourself
You can open any workbook in Protected View on purpose, which is a safe way to look at a file you are unsure about.
- Select File > Open.
- Select the arrow beside the Open button.
- Choose Open in Protected View.
If this is why your file is stuck, close it and open it normally, or select Enable Editing on the message bar.
Check before you enable editing
- Do you know who sent or shared the file.
- Does the message bar match what you expected, yellow for ordinary files and red for a failed check.
- Does the file open with a normal size and content in view mode.
If the answer to any of these is no, do not enable editing, and ask the sender to confirm the file first.
Once you enable editing the file becomes a trusted document, although the warning can return if you move the file.
Microsoft says a file with active content such as macros keeps showing its own message bar after you leave Protected View.
Leaving Protected View does not enable that active content automatically, so you may see a second warning that needs a separate choice.
Word and PowerPoint files
The same message bar appears in Word and PowerPoint.
For Word, see our Word Protected View guide.
Official sources
This guide follows these Microsoft Support pages.
- What is Protected View? (Microsoft Support)
- Trusted documents (Microsoft Support)
- Why did my file open read-only? (Microsoft Support)
More Word, Excel and PowerPoint guides
- How To Restore A Previous Version Of A Word Or Excel File (2026)
- How To Password Protect A Word Or Excel File (2026)
- How To Fix A Corrupt Excel File That Won't Open (2026)
- How To Enable Editing In Word Protected View Or Read-Only (2026)
- How To Fix Excel File Locked For Editing (2026)
- How To Combine Data From Multiple Sheets In Excel (2026)