Yes — a macro virus is real malware hiding inside an ordinary Word or Excel file, and it runs the moment you click “Enable Content.” The file looks normal. It opens normally. There is no installer, no strange program, nothing to download. The danger is a small piece of code already sitting inside the document, waiting for one click from you. That is the whole trick, and it has worked since 1995.
A macro is a small program written in Visual Basic for Applications — VBA, the scripting language built into Microsoft Office — that automates a repetitive task. A business might use one to format a report or pull numbers into a spreadsheet. A macro virus is the same tool written by an attacker. When you open the infected document and enable its macros, the code runs inside Word or Excel itself. It can copy itself into your Normal template, the master template Word uses for every new document, so that every document you save afterward carries it too. It can also download more malware, steal saved passwords, or email itself to your contacts — all from inside a program you trust.
This is not ancient history. The same idea that produced the first macro viruses in the 1990s powered Emotet, the banking trojan that spread through Word documents for seven years, and QakBot, whose botnet passed 700,000 infected computers before the FBI dismantled it in August 2023. Microsoft has fought back hard — since July 2022, Office on Windows blocks macros in files from the internet by default — and that block works, as long as you do not undo it yourself. This post explains what macro viruses are, shows the real examples, and gives you the exact steps to check a document and remove its macros.

What is a macro, and what makes it a virus?
Think of a macro as a recipe saved inside a document. Instead of doing the same 20 clicks every morning, someone records those clicks once as a macro, and the document does them automatically. Microsoft describes a macro as “a series of commands used to automate a repeated task,” and warns that “some macros can pose a security risk by introducing viruses or malicious software to your computer.” That is the honest split: the feature is legitimate, and millions of people use it for real work every day. The virus is what happens when the recipe was written by a criminal.
A macro virus needs two things to work, and both are ordinary. First, the document must contain macro code — which is why macro viruses travel in macro-enabled files, the ones ending in .docm, .xlsm or .pptm. Second, someone must allow the code to run. Modern Office does not run macros silently: it shows a warning bar and waits for you to click “Enable Content.” Attackers know this, so the email carrying the file always has a reason ready — an unpaid invoice, a shipping notice, a document “created in a newer version of Office” that supposedly needs macros to display properly. The click is the attack. Nothing else is required.
One honest concession: macros are not the enemy, and switching them off entirely is not the answer for everyone. Accountants, analysts and office managers run real businesses on legitimate macros, and a company that disabled them all would break its own workflows. That is exactly why macro viruses are hard to kill as a category — the security fix and the business need are in tension, and Microsoft’s answer has been warnings, defaults and blocking, not removal of the feature.
What are examples of macro viruses?
The history of macro viruses is short, specific, and worth knowing, because the same names keep coming back in new campaigns. Here are the ones that mattered.
| Example | Year | How it spread | What it did |
|---|---|---|---|
| Concept | 1995 | Word documents and templates | The first widely known Word macro virus. It infected the Normal template, so every document saved afterward carried it. |
| Laroux | 1996 | Excel spreadsheets | The first macro virus to target Excel. It added malicious macros to spreadsheets and damaged the data inside them. |
| Melissa | March 1999 | Word document sent by email | When macros were enabled, it emailed itself to the first 50 people in the victim’s Outlook address book. It spread fast enough to force several large organizations to shut down their mail systems. Its author, David L. Smith, was later convicted. |
| Emotet | 2014–2021 | Word documents with macros, dressed up as invoices, shipping notices and replies to real email threads | A banking trojan that became a delivery service for other malware, including ransomware. In July 2018, US-CERT called it among the most costly and destructive malware affecting governments and businesses, with clean-up costs of up to $1 million per incident. A Europol-coordinated operation across eight countries took its infrastructure down in January 2021. |
| QakBot | 2008–2023 | Malicious email attachments — for most of that time, Office documents whose macros ran the moment a user enabled them | A banking trojan turned ransomware doorway. At the August 2023 takedown, the FBI found it on more than 700,000 computers, and victims had paid its administrators about $58 million in ransoms between October 2021 and April 2023. Operation Duck Hunt seized 52 servers and $8.6 million in cryptocurrency. |
One case shows what a single macro can cost. In December 2015, staff at three regional electricity distributors in Ukraine received spear-phishing emails carrying Word and Excel files. Enabling the macros installed BlackEnergy malware and gave the attackers their foothold — the opening step of the attack that cut power to hundreds of thousands of people. The joint SANS and E-ISAC analysis traced the whole chain back to those macro-enabled attachments. A spreadsheet is not a harmless file when its macros are written by an attacker.
Why are macro viruses hard to spot?
They are hard to spot for one simple reason: nothing about the file looks wrong. A macro virus does not arrive as a suspicious program with a strange name. It arrives as an invoice, a resume, a shipping notice, or a spreadsheet from a colleague — the exact files you open without thinking, dozens of times a week. The document opens, the text reads normally, and the only sign of trouble is a yellow warning bar asking you to enable content. After the tenth time you see that bar on legitimate files, clicking it becomes a reflex. Attackers count on that reflex.
Three more things make them hard to catch. First, the code is invisible unless you go looking for it. A macro lives inside the document’s VBA project, which you only see if you open the Visual Basic editor — nobody does that before reading an invoice. Second, the file extension gives it away only if you look closely: a .docm file looks almost identical to a .docx file in an email attachment list, and one letter is easy to miss. Third, the macro runs inside Word or Excel, a program you already trust, so there is no installation step, no new icon, nothing that looks like a program starting. The attack borrows the trust you already give Office.
The attackers have also adapted when defenses improved. When security products got better at reading VBA macros, criminals revived Excel 4.0 macro sheets — a legacy format from before VBA — heavily in 2020 and 2021, because many security products did not parse them. And when Microsoft began blocking internet macros by default in 2022, gangs like QakBot moved on to other lures. The lesson is not that macro viruses are gone. It is that they are a technique attackers keep returning to, in whatever form currently slips past.
How can I tell if a document has a macro?
There are four quick checks, and the first two take seconds. Use them on any document you did not expect, before you click anything inside it.
| Check | What to look for | What it tells you |
|---|---|---|
| File extension | .docm, .xlsm or .pptm at the end of the file name | The file CAN contain macros. A .docx, .xlsx or .pptx file cannot hold VBA macros at all — if the attachment ends in .docm, treat it with suspicion. |
| Warning bar on open | A yellow “SECURITY WARNING — Macros have been disabled” bar, or a red “SECURITY RISK — Microsoft has blocked macros from running” bar | The file contains macros. The red bar means Office blocked them because the file came from the internet — do not work around it. |
| Macro list | Press Alt+F8, or go to View > Macros > View Macros | A list appears showing every macro stored in the document. An empty list means there is nothing to run. |
| Old file formats | .doc or .xls (the pre-2007 formats) | These older formats can carry macros too. A .doc file from a stranger deserves the same caution as a .docm file. |
If the file came from the internet or an email attachment and shows the red SECURITY RISK bar, that is Office doing its job. The macros are already blocked, and there is no Enable Content button to click by mistake. The danger starts only if you unblock the file yourself — for example, by ticking Unblock in the file’s Properties — without being certain it is safe.
How do I check and remove macros in Word and Excel?
Every step below is standard Word and Excel, and I verified each path against Microsoft’s own support pages on 19 November 2026. The Trust Center path and the four macro settings are Microsoft’s own words, not a paraphrase. The check-and-remove steps are the standard Word interface, cross-checked across three independent guides.
To check whether a document has macros, open it — but do NOT click Enable Content — then press Alt+F8. The Macros dialog box lists every macro in the document. If the list is empty, there is nothing to run. The same list is available from the ribbon: View > Macros > View Macros. In Excel, the same shortcut works: Alt+F8 opens the Macro dialog for the workbook.
To remove a macro from a Word document, press Alt+F8, select the macro in the list, and click Delete. Repeat for each macro, then save the document. To remove macros from an Excel workbook, do the same in Excel — Alt+F8, select, Delete, save.
The simplest removal method works in both apps and needs no dialog boxes: save the file in a format that cannot hold macros. In Word, go to File > Save As, and in the “Save as type” dropdown choose Word Document (*.docx). In Excel, go to File > Save As and choose Excel Workbook (*.xlsx). A .docx or .xlsx file cannot contain macros, so saving in that format strips them out. Keep a copy of the original file first if you think you might need the macros later — once saved as .docx, they are gone.
If you want to look deeper, enable the Developer tab — File > Options > Customize Ribbon, check Developer, click OK — then Developer > Visual Basic (or Alt+F11) opens the VBA editor, where you can see the code itself. Do not run code you do not understand. Reading it is safe; running it is the risk.
What does Microsoft do to stop macro viruses now?
Modern Office is much harder to infect than the Office of 1999, and the biggest change came in 2022. Since July 27, 2022 — Current Channel Version 2206, with the Semi-Annual Enterprise Channel following on January 10, 2023 — Office on Windows blocks macros in files from the internet by default. When you open an emailed or downloaded macro file, you see a red SECURITY RISK banner saying Microsoft blocked the macros because the source of the file is untrusted, and there is no button to enable them. This applies to Word, Excel, PowerPoint, Access, Visio, Project and Publisher on Windows. It does not apply to Office on a Mac, on Android or iOS, or Office on the web.
Behind that banner is the Trust Center, where your macro settings live. The path is File > Options > Trust Center > Trust Center Settings > Macro Settings. The default — and the one Microsoft expects most people to keep — is “Disable all macros with notification” (in Excel, “Disable VBA macros with notification”). The other options are “Disable all macros without notification,” “Disable all macros except digitally signed macros,” and “Enable all macros (not recommended, potentially dangerous code can run).” Never choose the last one. It removes the warning for every file, including the malicious ones, and Microsoft labels it exactly as it sounds: not recommended.
Microsoft’s own line on this is worth quoting directly, because it settles the most common question people ask: “You don’t need to enable macros to view or edit the file.” If all you need is to read the document or change its text, leave the macros off. The content is all there without them.
How do I stay safe from macro viruses?
Five habits cover nearly all of the risk, and none of them costs money.
- Never click Enable Content on a file you did not expect. It does not matter who the email claims to be from — your boss, a courier, a client. If you were not waiting for that document, do not enable its macros. If the file matters, contact the sender through a different channel and ask them to send it again, or to send a PDF instead.
- Read the file extension before you open the attachment. A .docx or .xlsx file cannot carry a macro virus. A .docm, .xlsm, .pptm, .doc or .xls file can. One letter at the end of the file name is the difference, so look at it before you double-click.
- Leave the Trust Center default alone. “Disable all macros with notification” is the default for a reason. It blocks macros and warns you when they are present, so you decide case by case. Do not switch it to “Enable all macros,” and do not unblock downloaded files in Properties unless you are certain about the sender and the file.
- Keep Office updated. The 2022 blocking change arrived as an update, and so do the fixes for the tricks attackers find next. An out-of-date Office is an Office without the latest defaults.
- Keep your antivirus running and scan anything suspicious. Antivirus is the backstop for the file you misjudged, not the first line of defense — the first line is your click. If you opened a file and something feels off afterward, run a scan rather than hoping for the best.
What should I do if I already clicked Enable Content?
Do not panic, but do not ignore it either. Close the document without saving it, and do not forward it to anyone. Then check whether anything actually happened: run a full scan with Windows Security and see what it finds. If Defender flags a threat, here is what to do when Windows Defender finds a threat — find it in Protection History, click Remove, restart, and run a second scan. If the document asked you to type a password, enter a code, or sign in to anything, change those passwords from a different device, starting with your email. And if the file arrived as an unexpected attachment pretending to be an invoice or a delivery notice, delete the email — the same sender will try again with a different file.
My position is simple: a document you did not ask for does not get its macros enabled, no matter who appears to have sent it. Read it, edit it, print it — all of that works with macros off. The one thing you never do is click Enable Content on a surprise file, because that single click is the entire attack.
Frequently asked questions
What is a macro virus?
A macro virus is malware written in the macro language of an office application — usually Visual Basic for Applications (VBA) — and hidden inside a Word, Excel or PowerPoint file. It runs when the document is opened and macros are enabled, and it can copy itself into templates and other documents.
What are examples of macro viruses?
Concept (1995) was the first widely known Word macro virus; Laroux (1996) was the first for Excel; Melissa (March 1999) emailed itself to the first 50 people in victims’ Outlook address books. In the modern era, Emotet and QakBot spread through Word documents with malicious macros — QakBot was found on more than 700,000 computers before the FBI dismantled it in August 2023.
Why are macro viruses hard to spot?
Because the file looks completely normal — an invoice, a spreadsheet, a shipping notice — and the macro code is hidden inside the document where you never see it. The only visible sign is usually the warning bar asking you to enable content, and after seeing that bar on legitimate files, clicking it becomes a reflex.
Can a .docx or .xlsx file contain a macro virus?
No. The .docx, .xlsx and .pptx formats cannot hold VBA macros at all. The risk is in macro-enabled files (.docm, .xlsm, .pptm) and the older pre-2007 formats (.doc, .xls), which can carry macros. If an attachment ends in .docm, treat it with suspicion.
How do I check if a document has a macro?
Open the file without clicking Enable Content, then press Alt+F8 — the Macros dialog lists every macro in the document. You can also check the file extension (.docm, .xlsm and .pptm can hold macros; .docx and .xlsx cannot) or look for the yellow or red warning bar when the file opens.
How do I remove a macro from a Word document?
Press Alt+F8, select the macro in the list and click Delete, then save the document. The simplest method is File > Save As and choosing Word Document (*.docx) — the .docx format cannot hold macros, so saving in that format strips them out. In Excel, the same trick works by saving as an Excel Workbook (*.xlsx).
Are macro viruses still a threat in 2026?
Yes, but the shape of the threat has changed. Microsoft has blocked macros in files from the internet by default since July 2022, and gangs like QakBot moved on to other lures — yet macro-carrying documents still arrive every day, and the block only protects you if you do not unblock the file yourself. One click on Enable Content is still all it takes.
Source: Microsoft Support, “Enable or disable macros in Microsoft 365 files” (checked 19 Nov 2026). Read the full guide here: Microsoft Support: Enable or disable macros in Microsoft 365 files. The July 2022 blocking change and rollout dates come from Microsoft Learn, “Macros from the internet are blocked by default in Office” (checked 19 Nov 2026). Example and takedown figures are from US-CERT, Europol, the FBI/Department of Justice and the SANS/E-ISAC analysis, as cited above.
Last Updated on November 23, 2026 by Em













