Skip to content

How to Safely Check an Unexpected Excel File

Follow these step‑by-step instructions to safely check an unexpected Excel spreadsheet without running hidden programs or clicking Enable Content.

Phones and ComputersNovember 11, 20263 min read

Leave an unexpected Excel file closed until you confirm who sent it. If you already opened the file, you can look at it safely as long as you do not click Enable Editing or Enable Content at the top of the screen.

Spreadsheets can carry a macro, which is a small program built into the file to do tasks automatically. Scammers sometimes hide malware, which is harmful software designed to steal information or damage your computer, inside these macros. Microsoft Excel blocks these hidden programs when a file comes from the internet or an email, so the file cannot run them unless you give it permission1.

Steps

Follow these steps in order, starting before you open the file.

Steps to check an unexpected Excel file

0 of 6 done

If you receive a strange spreadsheet at your job, follow your workplace steps to report a suspicious work email instead of checking it yourself. If the message says you owe money, see our guide on what to do if you receive an unexpected invoice attachment. Learning how to handle suspicious files is an important part of protecting your phone and computer.

What the warning bar looks like in Excel

When you open a spreadsheet that arrived by email, Excel opens it in a read‑only mode or blocks its macros. A dishonest file will often hide its numbers and show a message telling you to click the yellow bar at the top so you can read the page.

File name: Statement_8841.xlsm - Excel

SECURITY WARNINGMacros have been disabled.

Enable Content

This document is protected

To view this spreadsheet, click Enable Content in the yellow bar above.

Red flags in this file

Sometimes a bad macro will briefly flash a blue or black text window on your screen when it runs. You can learn more about what that window is in our guide to PowerShell on Windows.

Common questions

Do I ever need to click Enable Content just to read a spreadsheet?

No. You do not need macros turned on to read text, see numbers, or look at charts in an Excel file. If a page claims it is hidden or unreadable until you click Enable Content, close the file and delete it.

Is it safe to unblock an Excel file in Windows Properties?

Only unblock a file if you know the sender and asked them for a file with macros. Checking the Unblock box in the Properties menu of a file removes the Windows safety tag and lets macros run without warning you. Never do this to inspect a file you were not expecting.

Are .xlsx files completely safe to open?

Files ending in .xlsx cannot store macros, which makes them much safer than .xls or .xlsm files. However, they can still hold links to fake websites or connect to the internet in the background. You should still keep Protected View on and avoid clicking any links inside an unexpected .xlsx file.

For more information

  1. Macros from the internet are blocked by default in Office - Microsoft 365 Apps | Microsoft Learnlearn.microsoft.com
  2. VBA malware in Excel - Microsoft Q&Alearn.microsoft.com

Keep reading

More in Phones and Computers

What Is an Excel Macro?

An Excel macro is a small program inside a spreadsheet file. Learn why scammers hide harmful instructions in macros and why you should not click Enable Content.

DefinitionText and Email Scams

How to Safely Report a Suspicious Work Email

Got a strange or unexpected email at work? Follow these safe steps to report it to your IT team without clicking links or opening attachments.

Step by stepText and Email Scams