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