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

Select Enable Editing on the yellow message bar, or File > Edit Anyway if the bar is red.

Message barWhat to do
YellowSelect Enable Editing
RedSelect File > Edit Anyway, only if you trust the file
Nothing worksYour 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.

ReasonMessage you see
Downloaded from the internetBe careful – files from the Internet can contain viruses
Email attachment from an unsafe senderBe careful – email attachments can contain viruses
Unsafe folder such as Temporary Internet FilesThis file was opened from a potentially unsafe location
File failed validationMicrosoft 365 has detected a problem with this file
You chose Open in Protected ViewThis file was opened in Protected View
Someone else's OneDriveBe 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

  1. Open the workbook in Excel.
  2. Look at the yellow message bar under the ribbon.
  3. 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.

  1. Select the File tab.
  2. 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.

FormatFile 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.

  1. Select File > Options > Trust Center > Trust Center Settings.
  2. Select Protected View.
  3. Review the options listed below.
OptionWhat it covers
Files originating from the InternetDownloaded files
Files in potentially unsafe locationsFolders such as Temporary Internet Files
Outlook attachmentsEmail 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.

CauseFix
Read-only file attributeRight-click the file, choose Properties, clear Read-only, select OK
Antivirus opens files read-onlyCheck your antivirus settings
OneDrive storage fullFree space or check Manage storage
Unlicensed OfficeFix 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.

  1. Select File > Open.
  2. Select the arrow beside the Open button.
  3. 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.

Leave a Reply

Your email address will not be published. Required fields are marked *