Cyberkracht

Apps and programsMicrosoft Word

Why Word sometimes blocks macros

Since 2022, Microsoft has blocked macros from internet files by default. That is a good thing: here is why, and what you should do.

Beginner · 4 min read

Since 2022, Microsoft has blocked macros by default in Office files that come from the internet (for example as an e-mail attachment or downloaded from a website). This is because cybercriminals have been using malicious macros for years to spread harmful code as soon as someone clicks 'Enable content'.

Watch out: Do you see the message 'A potentially dangerous macro has been blocked'? Do not simply enable the macro unless you trust the sender and the content of the document 100%.

What is a macro?

A macro is a small program inside a Word or Excel document that carries out tasks automatically, such as formatting a table or calculating figures. That is handy, but it also means a macro can do things on your computer without you seeing it. In the hands of scammers, a macro can download harmful software, encrypt your files (ransomware) or steal passwords.

Why does this matter?

A macro needs a document that you open and allow yourself. That is why scammers try to persuade you to switch off the block. The blocked macro is therefore a layer of protection that steps in at exactly that moment. If you ignore the message and allow everything anyway, you hand the scammers the key.

A concrete example

You receive an e-mail from 'the secretariat' with an attachment called 'Overzicht_uitbetalingen.docm'. The document says: 'This file is protected. Click Enable content to view it.' In reality, the document contains no protected content: the scammers want you to activate the macro. If you do, harmful software can end up on your computer in the background.

A Word document with the red bar 'A potentially dangerous macro has been blocked' at the top, without real names or e-mail addresses
A Word document with the red bar 'A potentially dangerous macro has been blocked' at the top, without real names or e-mail addresses

Common mistakes

  • Immediately clicking Enable content because the document asks you to.
  • Trusting an attachment because the sender looks familiar. The e-mail address may be faked or the sender's account may have been hacked.
  • Having a document 'unlocked' by removing the block without knowing why it was blocked.
  • Letting yourself be rushed by time pressure such as 'urgent' or 'pay today'.

Tip: Are you expecting a document with macros from a trusted colleague? Ask them to share it via an internal, trusted location (e.g. the company network) instead of as an e-mail attachment.

What do you do if in doubt?

Leave the macro blocked and confirm through another channel, such as a phone call to a number you already know, whether the document really comes from the sender. Still suspicious? Delete the message and report it to Safeonweb. Did you already enable the macro? Close the document, disconnect your internet connection if necessary and read our page I clicked on a phishing link. Do you notice that files no longer open or a ransom message appears? Then read My files are being held hostage (ransomware).

Frequently asked questions

Why do I see this message on a file of my own?
A file that you downloaded from the internet or received by e-mail is marked as untrustworthy, even if it came from you. It is better to save it in a trusted location on your computer.

Should I always block macros?
For documents you were not expecting, yes. If you really need a macro for your work, only enable it for files from a source that you trust and have verified yourself.

Can I also read a document without enabling the macro?
Yes. You can usually just read the text and ordinary content. If you only need the macro to see something, that is a warning sign.

Microsoft: explanation of blocked macros(opens in a new tab)

Log in to save your reading progress.