• Outlook User
  • New Outlook app
  • Outlook.com
  • Outlook Mac
  • Outlook & iCloud
  • Developer
  • Microsoft 365 Admin
    • Common Problems
    • Microsoft 365
    • Outlook BCM
    • Utilities & Addins

Block Macros in Office 2013/2016

Slipstick Systems

› Outlook › Block Macros in Office 2013/2016

Last reviewed on August 26, 2016     5 Comments

The August 9 2016 security update for Office 2013 included a non-security feature to allow administrators to use Group Policy to block macros from running in files that are downloaded from the Internet. This feature was added to Office 2016 earlier this year.

This policy can be enabled using Group Policy or by editing the registry. With this policy set, macros in files downloaded from the Internet are blocked, even if the Macro Security settings allow macros to run and the Enable Editing button is clicked.

protected view banner

After clicking Enable Editing a new banner tells the user that macros are blocked:
macros are blocked banner

This setting will apply to documents downloaded from Internet websites, consumer storage providers (OneDrive, Google Drive, and Dropbox) or from public shares on the Internet (file-sharing sites), and attachments to emails that were received from outside the Exchange organization,

If you use Protected View, is this necessary? Yes! Only one person needs to disable Protected View on an infected document to infect the entire network. It's an additional roadblock but is not foolproof, as there is a way around it: if the Office file is saved to a trusted location or was previously trusted by the user, macros will be allowed to run, but may delay the user long enough to realize a file is not legitimate. I recommend everyone use it.

To trust a document, select the file in Windows Explorer, right click and choose Properties. Click Unblock.
Unblock files to enable macros

Administrators will need to enable this feature separately for Word, Excel, and PowerPoint - there isn't a single policy that applies to all Office applications. In the Group Policy Editor, it's under User Configuration > Administrative templates > Microsoft [application] 2016 > [application] options > Security > Trust Center.

set gpo policies to block files

Open the Block macros from running in Office files from the Internet setting and select Enabled then click OK.

policy to block macros

To enable this setting by editing the registry, create a DWORD named blockcontentexecutionfrominternet under each of the following keys and set the value to 1.

If the keys don't exist, you'll need to create them.

Office 2016

HKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\office\16.0\word\security
HKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\office\16.0\excel\security
HKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\office\16.0\powerpoint\security

In each key listed above, create this value:
DWORD: blockcontentexecutionfrominternet
Value = 1

Office 2013
HKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\office\15.0\word\security
HKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\office\15.0\excel\security
HKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\office\15.0\powerpoint\security

In each key listed above, create this value:
DWORD: blockcontentexecutionfrominternet
Value = 1

If you don't want to edit the registry, you can use these reg files to add the keys to your version of Outlook.
Office 2016 Office 2013

More Information

The Office 2016 Group Policy templates can be downloaded from Office 2016 Administrative Template files (ADMX/ADML) and Office Customization Tool and Office 2013 templates are here: Office 2013 Administrative Template files (ADMX/ADML) and Office Customization Tool

Block Macros in Office 2013/2016 was last modified: August 26th, 2016 by Diane Poremsky

Related Posts:

  • Disable the Unsafe Hyperlink Warning when Opening Attachments
  • Show Contact Linking fields in Outlook
  • Outlook Folder Homepages are missing
  • Remove Team Calendars from Outlook's Navigation Pane

About Diane Poremsky

A Microsoft Outlook Most Valuable Professional (MVP) since 1999, Diane is the author of several books, including Outlook 2013 Absolute Beginners Book. She also created video training CDs and online training classes for Microsoft Outlook. You can find her helping people online in Outlook Forums as well as in the Microsoft Answers and TechNet forums.

Subscribe
Notify of
5 Comments
newest
oldest most voted
Inline Feedbacks
View all comments

fil
March 9, 2017 11:37 am

HELP! I tried the 2013 solution you listed here but I can still run macros. Can you please list exactly where in the registry is the DWORD supposed to go. Lastly, Does the GPO have to be enabled on the domain in order for the registry fix to work?

Thank you all your help.

0
0
Reply
Diane Poremsky
Author
Reply to  fil
March 9, 2017 5:23 pm

You need to add the DWORD blockcontentexecutionfrominternet with a value of 1 to the following keys:

HKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\office\16.0\word\security
HKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\office\16.0\excel\security
HKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\office\16.0\powerpoint\security

You don't need to be using GPO - just adding these keys will work... but if you use the Home or Personal suite, these keys may not work. Also, because they are in Policies, you need to restart Outlook.

0
0
Reply
Umberto D\'Agnese
November 18, 2016 3:30 pm

What is the actual Policy Path and policy setting name that I could use to create the GPO? Thanks!

1
-1
Reply
Diane Poremsky
Author
Reply to  Umberto D\'Agnese
February 6, 2017 1:36 am

It's in the office templates at User Configuration > Administrative templates > Microsoft [application] 2016 > [application] options > Security > Trust Center and the keys that are set are listed on the page?

2
-3
Reply
Filip VandeWeghe
October 20, 2016 12:25 pm

Thanks for this post Diane.
I wonder if there were any similar changes to outlook 2013 security recently.

Here's why :
Since a few days, our Outlook 2013 user (not all of them, but quite a few) have reported that Outlook shows a message that the macros are disabled.

VBAProject.otm is signed with a SHA256 Symantec Code Signing Certificate (valid until aug 2017) [timestamped on a SHA1 server], and with Outlook 2013 Macro Security setting "Warnings for signed macro's", users never had this issue before [we are trusted publisher on the users pc]

I have no idea why Outlook suddenly behaves differently. New complaints keep rolling in ... only from users on Outlook 2013. Other versions, 2007 .. 2016, don't seem to be affected by this issue.

Setting the Outlook 2013 Macro Security setting to "Warnings for all macros" is the only way I can get the macros to work again. But that requires the users to click "Enable", at least the first time they run a macro.

Any suggestions ?

Many thanks.

2
-2
Reply

Visit Slipstick Forums.
What's New at Slipstick.com

Latest EMO: Vol. 30 Issue 31

Subscribe to Exchange Messaging Outlook






Support Services

Do you need help setting up Outlook, moving your email to a new computer, migrating or configuring Office 365, or just need some one-on-one assistance?

Our Sponsors

CompanionLink
ReliefJet
  • Popular
  • Latest
  • Week Month All
  • Jetpack plugin with Stats module needs to be enabled.
  • Move Deleted Items to Another Folder Automatically
  • Open Outlook Templates using PowerShell
  • Count and List Folders in Classic Outlook
  • Google Workspace and Outlook with POP Mail
  • Import EML Files into New Outlook
  • Opening PST files in New Outlook
  • New Outlook: Show To, CC, BCC in Replies
  • Insert Word Document into Email using VBA
  • Delete Empty Folders using PowerShell
  • Warn Before Deleting a Contact
Ajax spinner

Recent Bugs List

Microsoft keeps a running list of issues affecting recently released updates at Fixes or workarounds for recent issues in classic Outlook (Windows).

For new Outlook for Windows: Fixes or workarounds for recent issues in new Outlook for Windows .

Outlook for Mac Recent issues: Fixes or workarounds for recent issues in Outlook for Mac

Outlook.com Recent issues: Fixes or workarounds for recent issues on Outlook.com

Office Update History

Update history for supported Office versions is at Update history for Office

Outlook Suggestions and Feedback

Outlook Feedback covers Outlook as an email client, including Outlook Android, iOS, Mac, and Windows clients, as well as the browser extension (PWA) and Outlook on the web.

Outlook (new) Feedback. Use this for feedback and suggestions for Outlook (new).

Use Outlook.com Feedback for suggestions or feedback about Outlook.com accounts.

Other Microsoft 365 applications and services




New Outlook Articles

Move Deleted Items to Another Folder Automatically

Open Outlook Templates using PowerShell

Count and List Folders in Classic Outlook

Google Workspace and Outlook with POP Mail

Import EML Files into New Outlook

Opening PST files in New Outlook

New Outlook: Show To, CC, BCC in Replies

Insert Word Document into Email using VBA

Delete Empty Folders using PowerShell

Warn Before Deleting a Contact

Newest Code Samples

Open Outlook Templates using PowerShell

Count and List Folders in Classic Outlook

Insert Word Document into Email using VBA

Warn Before Deleting a Contact

Use PowerShell to Delete Attachments

Remove RE:, FWD:, and Other Prefixes from Subject Line

Change the Mailing Address Using PowerShell

Categorize @Mentioned Messages

Send an Email When You Open Outlook

Delete Old Calendar Events using VBA

Repair PST

Convert an OST to PST

Repair damaged PST file

Repair large PST File

Remove password from PST

Merge Two Data Files

Sync & Share Outlook Data

  • Share Calendar & Contacts
  • Synchronize two computers
  • Sync Calendar and Contacts Using Outlook.com
  • Sync Outlook & Android Devices
  • Sync Google Calendar with Outlook
  • Access Folders in Other Users Mailboxes

Diane Poremsky [Outlook MVP]

Make a donation

Mail Tools

Sending and Retrieval Tools

Mass Mail Tools

Compose Tools

Duplicate Remover Tools

Mail Tools for Outlook

Online Services

Calendar Tools

Schedule Management

Calendar Printing Tools

Calendar Reminder Tools

Calendar Dates & Data

Time and Billing Tools

Meeting Productivity Tools

Duplicate Remover Tools

Productivity

Productivity Tools

Automatic Message Processing Tools

Special Function Automatic Processing Tools

Housekeeping and Message Management

Task Tools

Project and Business Management Tools

Choosing the Folder to Save a Sent Message In

Run Rules on messages after reading

Help & Suggestions

Submit Outlook Feature Requests

Slipstick Support Services

Buy Microsoft 365 Office Software and Services

Visit Slipstick Forums.

What's New at Slipstick.com

Home | Outlook User | Exchange Administrator | Office 365 | Outlook.com | Outlook Developer
Outlook for Mac | Common Problems | Utilities & Addins | Tutorials
Outlook & iCloud Issues | Outlook Apps
EMO Archives | About Slipstick | Slipstick Forums
Submit New or Updated Outlook and Exchange Server Utilities

Send comments using our Feedback page
Copyright © 2025 Slipstick Systems. All rights reserved.
Slipstick Systems is not affiliated with Microsoft Corporation.

:wpds_smile::wpds_grin::wpds_wink::wpds_mrgreen::wpds_neutral::wpds_twisted::wpds_arrow::wpds_shock::wpds_unamused::wpds_cool::wpds_evil::wpds_oops::wpds_razz::wpds_roll::wpds_cry::wpds_eek::wpds_lol::wpds_mad::wpds_sad::wpds_exclamation::wpds_question::wpds_idea::wpds_hmm::wpds_beg::wpds_whew::wpds_chuckle::wpds_silly::wpds_envy::wpds_shutmouth:
wpDiscuz

Sign up for Exchange Messaging Outlook

Our weekly Outlook & Exchange newsletter (bi-weekly during the summer)






Please note: If you subscribed to Exchange Messaging Outlook before August 2019, please re-subscribe.

Never see this message again.

You are going to send email to

Move Comment