Share via

microsoft access blocking macros even though the site is added to trusted sites

Chandler,Madison 0 Reputation points
2026-02-28T14:30:20.68+00:00

ive added the website to trusted sites but access is still blocking macros

Microsoft 365 and Office | Access | For education | Windows
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Austin-H 8,255 Reputation points Microsoft External Staff Moderator
    2026-03-02T00:19:08.7766667+00:00

    Hello Chandler,Madison
    Thank you for posting question to Microsoft Q&A Forum.
    According to your issue, please review this thread: https://learn.microsoft.com/en-us/microsoft-365-apps/security/internet-macros-blocked#steps-to-take-to-allow-vba-macros-to-run-in-files-that-you-trust and check all scenarios.

    Could you please provide a screenshot of the issue? Please also check if other Access files with macro could be opened on the same computer.

    I also sent a private message in case you would like to share more information with me.

    I am looking forward to your response.


    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  2. Q&A Assist
    2026-02-28T14:30:33.67+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    Adding a site to Trusted sites affects how Mark of the Web (MOTW) is applied when files are downloaded, but macros can still be blocked for several other reasons. Check these points in order:

    1. Confirm the file’s zone (MOTW)
      • On the Access file, run in Command Prompt:
             notepad "path-to-file.accdb":Zone.Identifier
        
      • In the Notepad window, look under [ZoneTransfer] for ZoneId:
        • 2 = Trusted sites
        • 3 = Internet
      • If ZoneId=3, the file is still treated as Internet and macros are blocked by default even if the site was added later.
    2. Remove Mark of the Web from the file
      • Right‑click the Access file > Properties > on General tab select Unblock > OK.
      • If Unblock is not visible or has no effect (for example, on some network shares), use PowerShell:
             Unblock-File -Path "path-to-file.accdb"
        
      • Removing MOTW (ZoneId) allows VBA macros to run by default, assuming no policy or Trust Center setting is blocking them.
    3. Verify the location is really Trusted / Local intranet
      • Go to Control Panel > Internet Options > Security > Trusted sites > Sites.
      • Confirm the exact FQDN or IP of the file server or site is listed.
      • If using http:// or a UNC/network share, clear Require server verification (https:) for all sites in this zone.
      • Files on network shares that are still in the Internet zone will have macros blocked even if you see an Unblock checkbox.
    4. Check if Group Policy is blocking macros from the Internet
      • For Microsoft 365 Apps for enterprise, admins can enable Block macros from running in Office files from the Internet for Access under:
        • User Configuration\Policies\Administrative Templates\Microsoft Access 2016\Application Settings\Security\Trust Center.
      • If this policy is Enabled, macros in files with MOTW are blocked regardless of Trusted sites changes until MOTW is removed or the policy is changed.
    5. Consider Trusted Locations and Trusted Publishers
      • If the file is placed in an Access Trusted Location, macros are enabled even if the file originally came from the Internet.
      • If the VBA project is digitally signed and the certificate is in Trusted Publishers, macros can run even when MOTW exists.

    If, after confirming the site is in Trusted sites, the file still shows ZoneId=3, re‑download it after the zone assignment change or remove MOTW with Unblock / Unblock-File.


    References:

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.