Cellwise Start free

Excel guide · 4 min read

Excel Protected View: why you can't edit and how to fix it

Quick answerProtected View opens files from the internet, email attachments and unsafe folders read-only, with a yellow bar. Click Enable Editing on the bar if you trust the file. If the same file opens that way every time, close it, right-click it in File Explorer, choose Properties and tick Unblock. A red bar saying Office has detected a problem means the file failed a check: get a fresh copy from the sender rather than forcing it open.

Sample data

Every result on this page was calculated from this sheet by the same spreadsheet engine the Cellwise app uses.

ABCD
1MessageColourWhat it meansWhat to do
2Files from the Internet can contain virusesYellowDownloaded fileEnable Editing if you trust it
3This file is an Outlook attachmentYellowOpened from emailEnable Editing, or save it first
4Opened from a potentially unsafe locationYellowTemp or download folderSave to your own folder
5Office has detected a problem with this fileRedFailed a file checkAsk for a fresh copy
6Macros blocked because the source is untrustedRedInternet file with macrosProperties > Unblock if trusted
7Restricted AccessYellow/greyLabel or permissions set by ownerAsk the owner for edit rights

What Protected View is and why your file is in it

Protected View is a read-only sandbox Excel uses for files that might be unsafe. You can read, scroll and copy, but not type, and macros and external links don't run. Windows marks files that come from the internet, and Excel checks that mark and where the file is when it opens it.

There are three yellow-bar triggers. The file came from the internet (a download or a file sent through some chat apps). It's an Outlook attachment opened from the message. Or it's in a location Excel treats as unsafe, such as the temporary internet files folder. The table above shows each message and the red-bar variants.

1. Yellow bar: Enable Editing

If you know who sent the file and expected it, click Enable Editing. Excel reopens it normally, and AutoSave and editing work again. For an attachment, it's often better to save it to a folder first (in Outlook, right-click the attachment and choose Save As) and open it from there, so your changes don't go into a temporary copy you can't find later.

If you didn't expect the file, don't enable editing. Reading it in Protected View is safe; that's the point of it. Check with the sender through another channel if a file asks you to enable editing or macros to "see the content".

2. The same file keeps opening in Protected View: Unblock it

A downloaded file keeps its "came from the internet" mark until you remove it. Doing this also matters for macro workbooks: Excel blocks macros in files with that mark and shows a red Security Risk bar saying Microsoft has blocked macros because the source is untrusted. Unblock only files you trust.

  1. Close the file in Excel.
  2. In File Explorer, right-click the file and choose Properties.
  3. On the General tab, at the bottom next to Security, tick Unblock. If there's no Unblock box, the file isn't marked.
  4. Click OK and open the file again.

3. Red bar: Office has detected a problem with this file

This means the file failed Office's file check: it may be damaged, made by a program that writes non-standard files, or deliberately malformed. Click the message to see the details on the File > Info page. Excel may offer Edit Anyway; only use it for a file you trust, from a source you can confirm.

The safer fix is a fresh copy: ask the sender to save it again as .xlsx and resend it, or export it again from the system it came from. If the file won't open at all, the Excel cannot open the file guide covers damaged and mislabelled files.

4. Turning it off, and the safer option: a trusted folder

The switches are in File > Options > Trust Center > Trust Center Settings > Protected View. There are three ticks: files originating from the internet, files in potentially unsafe locations, and Outlook attachments. Leave all three on. Turning them off removes a real layer of protection against malicious files, and on a work PC your IT team may have locked them anyway.

If you regularly open the same safe exports, use a Trusted Location instead: Trust Center Settings > Trusted Locations > Add new location, and choose one folder you control, such as Documents\Reports. Files saved there open without Protected View. Be aware that trusted locations also let macros run without asking, so never add Downloads, your desktop or a whole drive.

Enable Editing worked but you still can't change cells

Then something else is stopping you. "The cell or chart you're trying to change is on a protected sheet" means sheet protection: use Review > Unprotect Sheet, with the password if one was set. A Restricted Access bar or a sensitivity label means the owner limited who can edit; ask them for permission. And a [Read-Only] title with no bar has the causes in the remove read-only guide.

Common mistakes

Turning off all three Protected View settings to stop the bar

Unblock the files you trust, or use one Trusted Location you control. Keep Protected View on for everything else.

Adding the Downloads folder as a Trusted Location

Trusted locations also run macros without asking. Choose a folder only you save into.

Editing an attachment opened from Outlook and losing the changes

Save the attachment to a folder first, then open and edit that copy.

Clicking Edit Anyway on a red-bar file from an unknown sender

Ask for a fresh copy instead. The red bar means the file failed a check.

FAQ

How do I get out of Protected View in Excel?

Click Enable Editing on the yellow bar. To stop one downloaded file opening that way every time, close it and tick Unblock in its Properties.

Why does Excel open every file in Protected View?

They're downloads or attachments with Windows' internet mark. Save them to your own folder and unblock the ones you trust, or set up one Trusted Location for files you open often.

Is it safe to turn off Protected View?

It's not recommended. Protected View stops a malicious file from running anything while you look at it. Unblocking files you trust is the safer way to skip it.

Why can't I edit an Excel file even after Enable Editing?

The sheet may be protected (Review > Unprotect Sheet), the file may be read-only or set to open read-only, or the owner may have restricted editing with a sensitivity label.

What does "Office has detected a problem with this file" mean?

The file failed Office's file check, so it opens in Protected View with a red bar. Get a fresh copy from the sender rather than forcing it open.

Related guides

Updated