Excel 2016: How to clear Trusted Documents (reset Enable Macros prompt)

Excel 2016: How to clear Trusted Documents (reset Enable Macros prompt)

In this article, I will outline the steps to reset macro warnings in Excel 2016 to forget previously trusted documents.  We will also look at how to…

Understanding the problem

The first time you open an excel workbook that has macros you are prompted with warning ribbon to enable macros.  If you choose the enable macros the file will be marked as a trusted document and each subsequent time you open the file macros are enabled automatically.  Excel keeps track of documents that you have intentionally enabled macros on in the Trusted Documents list.

Clear Trusted Documents in Excel

  1. Open Excel 2016

  2. Press Ctrl+O to get to the File | Open screen and choose Options from the left menu.
  3. In the Excel Options dialog choose Trust Center then click the Trust Center Settings button.
    Excel Options
  4. Choose Trusted Documents, click the Clear button and answer Yes to the confirmation dialog.

Clearing all trusted documents will make Excel forget any previous documents for which macros were enabled.  The next time you open one of those files the Enable Macros warning ribbon will be presented.

Disable Trusted Documents

If you want to disable Excel from tracking and marking files as Trusted you can do so by clicking the Disable Trusted Documents checkbox.

It’s important to note that this checkbox does not disable macro or the Enable Macros warning.  Next, we will look at how to disable macros altogether.

Disable Macros and the Enable Macros warning ribbon

  1. In Trust Center choose Macro Settings
  2. Click the radio button next to Disable all macros without notification
  3. Click OK to save the changes and close the Trust Center settings dialog
    Excel Disable Macros

PowerShell Script to clear Excel’s Trusted Documents list

Previously Trusted Documents are stored in the registry at the following location.

HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Excel\Security\Trusted Documents\TrustRecords

Registry Excel TrustedRecordsHere is a PowerShell script to delete all the Trusted Document subkeys. The script does not require administrative privileges to run.

#PowerShell script to clear the Excel Trusted Documents cache

Set-Location "HKCU:\Software\Microsoft\Office\16.0\Excel\Security\Trusted Documents\TrustRecords"
Remove-ItemProperty -Path . -Name "*.xls*"


Previous Versions of Excel

The steps outlined above should work on the previous version of Excel (2010, 2013) but may vary slightly.

Via Group Policy

If you administer computers in a Domain environment you can use Group Policies and the Office 2016 ADMX file to disable trusted documents and macros, reference.


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

Ads Blocker Image Powered by Code Help Pro

🙏🙏A Humble Request to Disable AdBlock 🙏🙏

You can close this message & continue reading but...
❤️❤️❤️ Please consider visiting one of my sponsors first ❤️❤️❤️

DigitalOcean 🚀

Sign up and get a $200, 60-day credit to try DO.
Spend $25 after your credit expires and I will also get $25 in credit!
DigitalOcean Referral Badge

Pictory 🤖

Create amazing videos using Pictorys AI powered software.
Its FREE to create your first 3 video projects

Hi Reader, I noticed that you are using an ad blocker while visiting my website. While I completely understand that excessive ads can hinder your browsing experience, ad revenue helps pay for the cost associated with operating this website.

jcutrer.com is a labor of love, created with the primary aim to provide you with quality content, free of cost. It’s a space where I share information, ideas, and insights that I hope have a meaningful impact. However, maintaining and updating this platform incurs substantial costs.