how to macro enable or stop security warning

Watchara Tipprasert 0 Reputation points
2026-09-10T04:36:58.37+00:00

Please advise how to stop security warning in office 2024 or enable macro. The Microsoft advice cannot help

Microsoft 365 and Office | Excel | For business | Windows
0 comments No comments

3 answers

Sort by: Oldest
  1. AI answer

    2026-09-10T04:37:12.9533333+00:00

    For Office 2024 on Windows, use one of these supported paths:

    1. Enable a macro for a specific file
      • Open the file.
      • If the yellow security warning appears, select Enable Content.
      • In the Security Warning dialog, select Yes to make the document trusted.
      • This enables macros for that document.
    2. Change macro settings in the app
      • Go to File > Options > Trust Center > Trust Center Settings > Macro Settings.
      • Choose the setting that matches the need:
        • Disable all macros without notification
        • Disable all macros with notification
        • Disable all macros except digitally signed macros
        • Enable all macros (not recommended, potentially dangerous code can run)
      • In Excel, these options are shown as VBA macros options.
      • These settings apply only to the current Microsoft 365 app, not all Office apps.
    3. Stop repeated warnings for trusted files
      • Use Enable Content once to make the document trusted, or
      • Store trusted files in a Trusted Location so Office does not check them through Trust Center.
    4. If the file came from the internet and macros are still blocked
      • Office can block macros from files obtained from the internet by default.
      • If that policy is Disabled or Not Configured in older behavior, users can see the warning and use Enable Content.
      • If the device is managed by work or school, an administrator might prevent changing macro settings.
    5. If the goal is to stop the warning entirely
      • In Office on Windows, the warning behavior is controlled through Trust Center macro settings.
      • Disable all macros with notification is the default prompt-based option.
      • Enable all macros stops macro prompts, but it is not recommended because potentially dangerous code can run.

    Important security note:

    • Microsoft advises not to broadly lower Trust Center security unless the files and source are trusted.
    • Macros are not required to view or edit the file.

    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

    1 person found this answer helpful.
  2. Watchara Tipprasert 0 Reputation points
    2026-09-10T04:42:57.9333333+00:00

    Not help. Security risk still show

    Was this answer helpful?

    0 comments No comments

  3. Dora-T 715 Reputation points Independent Advisor
    2026-09-10T05:24:36.1933333+00:00

    Hi @Watchara Tipprasert

    When you open the file, do you see the “SECURITY RISK – Microsoft has blocked macros from running because the source of this file is untrusted” message shown in the screenshot below?A screenshot of a security risk banner indicating that Microsoft blocked macros from running because the source of the file is untrusted.

    If not, could you please provide a screenshot of the warning you are seeing? Please make sure to hide or remove any personal or sensitive information before sharing it.

    Also, could you please confirm the following information?

    -Is this an Excel file that you downloaded from the Internet?

    -Is the file saved locally on your computer, or is it stored on a network/shared drive?

    -What Office version and build are you currently using? You can find this information by going to File > Account > About Excel.

    As you mentioned, you have already tried the steps suggested by the AI answer, including changing the Macro Settings in Trust Center, but the Security Risk warning still appears.

    In the meantime, you can try the following steps:

    1. Unblock the file in Windows Properties

    -Make sure Excel is completely closed.

    -Right-click the Excel file you downloaded and select Properties.

    -In the General tab, look at the bottom of the window for the Security section.

    -If you see an Unblock checkbox, select it.

    -Click Apply and then OK.

    -Open the Excel file again and check whether the warning still appears.

    1. If the file is stored on a network/shared drive

    If the file is stored on a network/shared drive, you can try adding the network location to the Local intranet zone through Internet Options. This may help if Windows is treating the network location as an untrusted source.

    Reference: https://learn.microsoft.com/en-us/microsoft-365-apps/security/internet-macros-blocked#files-centrally-located-on-a-network-share-or-trusted-website

    Please let me know how it goes.

    Was this answer helpful?


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.