HomeMicrosoft ExcelHow to Stop or Block Macros from Running in...

How to Stop or Block Macros from Running in Microsoft Office?

Microsoft allows you to block Macro viruses or Macro targeted malware files from the Internet from opening & running automatically in your Microsoft Office programs such as Word, Excel, or PowerPoint documents. For that, you need to use Group Policy in Windows 11/10.

Office Macros are codes written in Visual Basic (VBA) to carry out select repetitive tasks. They are helpful by themselves, but malware writers often misuse this functionality to introduce malware into your computer system.

Cybercriminals send macro-infested files that will later download a malicious script via email and use a subject line that interests or provokes you to open the document. Once you open such a document, a macro-virus runs on your computer and executes whatever task the criminal wants.

By default, Microsoft has disabled the Macro functioning on the Office program. That means no macro would run in Microsoft Word or Excel until you allow it to run since the files are now open in Protected View. Apart from that, Microsoft also allows you to block or stop malicious Macros using Group Policy.

In this gearupwindows article, we will guide you on preventing Macros from running in Microsoft Office.

How to Stop or Block Macros from Running in Microsoft Office?

Before proceeding with the steps, please ensure that your Windows 11/10 computer can run Group Policy. If you are using Home Edition Windows 11/10, you’ll need to enable the gpedit.msc. Next, you need to download and install the Office’s Group Policy template. For that, navigate to the Microsoft website and download the latest admin templates.

To prevent Micros from running in the Office program on a Windows 11/10 PC, do the following:-

Step 1. Open Local Group Policy Editor.

For that, press the Windows + R keys on the keyboard and type gpedit.msc in the Run box. After that, hit Enter key on the keyboard.


Step 2. When the Local Group Policy Editor window appears on your computer, navigate to the following path in the left sidebar:-

User configuration > Administrative templates > Microsoft Word > Word options > Security > Trust Center.

Step 3. On the right sidebar, double-click on the policy “Block macros from running in Office files from the Internet.”

Step 4. Select the Enabled option.

Step 5. Click Apply.

Step 6. Click OK.

Similarly, disable the policy mentioned above at the following paths also:-

User configuration > Administrative templates > Microsoft Excel > Excel options > Security > Trust Center


User configuration > Administrative templates > Microsoft PowerPoint > PowerPoint options > Security > Trust Center


In conclusion, while Office Macros are useful, they can also be used by cybercriminals to introduce malware into your computer system. Microsoft Office provides built-in protections to prevent Macro viruses from automatically opening and running in Word, Excel, or PowerPoint documents, but it is always best to take extra precautions to keep your system safe. In this article, we have shown you how to use Group Policy in Windows 11/10 to block or stop malicious Macros from running in Microsoft Office. By following these simple steps, you can ensure that your system remains protected from such threats.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Introducing Glow: A Free, Open-Source System Overview Tool for In-Depth PC Monitoring

In an era where digital devices are an integral part of our lives, keeping a close eye on your computer's processes and performance can...

Get Your Free MiniTool ShadowMaker Pro License Today – Limited Time Giveaway!

Are you tired of constantly worrying about losing your important files and data due to unexpected system crashes or hardware failures? Look no further...

Exclusive Giveaway: Get FRANZIS DENOISE Projects 2 Pro for Free – Your Path to Noise-Free Photography!

In the realm of digital photography, there's always one nemesis that photographers, whether amateurs or professionals, grapple with: noise. Image noise, those pesky specks...

Unlock a Year of Secure Password Management: Sticky Password Premium 1-Year Free Giveaway!

Are you tired of struggling to remember all your passwords? Do you find yourself spending precious time entering login credentials over and over again?...

Unlock Seamless iPhone 15 Data Management with FoneTool Professional: Participate & Win!

With the evolution of technology, managing data on our devices has become a task that requires both precision and ease. The release of the...

Related Posts