Switch on or switch off macros in Microsoft 365 files (2024)

Excel for Microsoft 365 Words for Microsoft 365 Outlook for Microsoft 365 PowerPoint tot Microsoft 365 Access to Microsoft 365 Excel 2021 Word 2021 Outlook 2021 PowerPoint 2021 Access 2021 Visio Professional 2021 Visio Standard 2021 Excel 2019 Word 2019 Outlook 2019 PowerPoint 2019 Access 2019 Visio Professional 2019 Visio Standard 2019 Excel 2016 Word 2016 Outlook 2016 PowerPoint 2016 Access 2016 Visio Professional 2016 Visio Standard 2016 Excel 2013 Word 2013 Outlook 2013 PowerPoint 2013 Access 2013 Visio Professional 2013 Visio 2013More or less

Guided support in your browser can offer digital solutions for office problems

Try guided support

A macro is a number of assignments that are used to automate a repeated task and can be performed when you have to perform the task.However, some macros can form a security risk by introducing viruses or malignant software on your computer.

Warning:Never activate macros in a Microsoft 365 -File, unless you know for sure that you know what these macros are doing and you want the functionality they deliver.You do not have to enable macros to edit the file.See for more info, seeProtect yourself against macro viruses.

Make a document that trusts to engage macros

If you see a security warning when you open a document or try to perform a macro, you can choose to make it a trusted document and a macros.This example is on an Excel workbook.

Switch on or switch off macros in Microsoft 365 files (1)

  1. to electTurn on content.

  2. ISafety WarningDialog, selectInTo familiarize the document.

    Switch on or switch off macros in Microsoft 365 files (2)

Macros are now enabled in this document.To withdraw a trusted document, you must delete all the trusted documents.For more information, seeReliable documents.

Tip:Instead of activating macros for each document, you can make a trusted place to save trusted documents. Microsoft 365 will then note them with the Trust Center. See for more information, seeAdd a trusted location, delete or change on Microsoft Office.

Change the Macro settings in Trust Center

Macro settings are located in the Trust Center.But if your device is managed by your work or school system administrator, there may be someone to change settings.

Important:When you change your macro settings in the trust center, they only point to the Microsoft 365 app that you are currently using.The macro settings do not change for all your Microsoft 365 apps.

  1. to electFilThe tab and selectPossibilities.

  2. to electTrust centerand then selectTrust Center -Settings.

  3. ITrust center, To electMacro settings.

    Switch on or switch off macros in Microsoft 365 files (3)

    Tip:If you haveThe tab is developingYou must choose on your tapeDeveloperTab then Select Switch on or switch off macros in Microsoft 365 files (4)Macro securityto openTrust centerfast.

  4. Make the choices you want and then selectMagn.

The following are macro settings settings.Not all apps have the same choices.

Remark:The options are slightly different in Excel, we call them out while we go.

  • Switch off all macros without a reviewMacros and security warnings for macros are disabled.

    This option is in ExcelSwitch VBA -Macros off without assessmentAnd this only applies to VBA macros.

  • Switch off all macros with assessmentMacros are eliminated, but security warnings appear when macros are present.

    Switch on or switch off macros in Microsoft 365 files (5)

    Use this option to switch on macros in a case - -case basis.

    In the Exceleis institutionSwitch VBA -Macros off with assessmentAnd this only applies to VBA macros.

  • Switch off all macros, except digitally signed macrosMacros are eliminated and security warnings appear when there are no -signing macros.But if the macro is digitally signed by a trusted publisher, the macro just runs.If the macro is signed by a publisher, you have no confidence in the possibility.To activate the signed macro and trust the publisher.

    In the Exceleis institutionSwitch VBA -Macros off except digitally signed macrosAnd this only applies to VBA macros.

  • Enable all macros (not recommended, possibly dangerous code can be performed)All macros are executed without confirmation.This setting makes your computer vulnerable to malignant code.

    In the Exceleis institutionVBA -Macros switch on (not recommended, possibly dangerous code)And this only applies to VBA macros.

  • Excelalalo has a check box forSwitch on Excel 4.0 macros when VBA -Macros are switched on.If you choose this check box, all the above settings for VBA -Macros also apply to Excel 4.0 (XLM) macro's. If this check box is not selected, XLM Macro is switched off without assessment.

  • Trust access to the VBA project object modelBlock or give programmatic access toVisual Basic for Applications (VBA)Object model of an automation client.This security option is written for code to automate a Microsoft 365 program and to manipulate the VBA environment and the object model.It is an institution per. users and per application and refuses standard access and prevents not -authorized programs building harmful self -replicating code.Customers can have access to automation.

    Remark:Microsoft Access HasnoAccess to trust to VBA project model - Objectpossibility.

Also see

Change Macro security institutions in Excel

Quick start: Make a macro in Excel.

Block suspicious macros at the office at Windows 10 S.

How malware can infect your PC

Need more help?

Do you want more options?

Experience society

Explore subscription benefits, scale training courses, learn how to protect your device and more.

Switch on or switch off macros in Microsoft 365 files (6)

Microsoft 365 subscription duties

Switch on or switch off macros in Microsoft 365 files (7)

Microsoft 365 -training

Switch on or switch off macros in Microsoft 365 files (8)

Microsoft protection

Switch on or switch off macros in Microsoft 365 files (9)

Accessibility center

The communities help you ask and answer questions, to give feedback and hear from experts with rich knowledge.

Switch on or switch off macros in Microsoft 365 files (10)

Ask the Microsoft community

Switch on or switch off macros in Microsoft 365 files (11)

Microsoft Tech Community

Switch on or switch off macros in Microsoft 365 files (2024)
Top Articles
Latest Posts
Article information

Author: Tish Haag

Last Updated:

Views: 6449

Rating: 4.7 / 5 (67 voted)

Reviews: 82% of readers found this page helpful

Author information

Name: Tish Haag

Birthday: 1999-11-18

Address: 30256 Tara Expressway, Kutchburgh, VT 92892-0078

Phone: +4215847628708

Job: Internal Consulting Engineer

Hobby: Roller skating, Roller skating, Kayaking, Flying, Graffiti, Ghost hunting, scrapbook

Introduction: My name is Tish Haag, I am a excited, delightful, curious, beautiful, agreeable, enchanting, fancy person who loves writing and wants to share my knowledge and understanding with you.