Microsoft Office

How To Unblock Microsoft Macros In Excel

To unblock macros in Excel for Windows, first check the warning shown above the worksheet. For a trusted downloaded workbook, close it, open its Windows file Properties and select Unblock if available. For a normal macro notification, use Enable Content. If your organisation controls macro.

Which licences fit your PC setup?

Prices are an AUD snapshot, not a live quote. Confirm variant and total on the listing.



Identify what is blocking the workbook

Excel macros automate tasks such as formatting worksheets, processing data and producing reports. Many use Visual Basic for Applications (VBA), which can also run harmful code. Before changing anything, confirm that you expected the workbook, know its source and understand why it needs macros.

The instructions below cover the Windows desktop app. Start with the message you see:

  • A Security Risk message about an untrusted source usually points to restrictions on an internet-sourced file. Check the file's Windows Properties.
  • A Security Warning saying macros have been disabled may offer Enable Content. This lets you approve a trusted workbook.
  • A Protected View message concerns restricted opening and editing. Leaving Protected View does not necessarily resolve a separate macro block.
  • Unavailable settings or a message about administrator restrictions require help from your organisation's IT team.

A familiar filename or company logo does not establish that the code is safe. If the attachment was unexpected, confirm it with the sender through a separate, known contact method before proceeding.

Unblock a trusted downloaded Excel file

Windows can mark downloaded files as originating from the internet. Office uses this information to block macros in affected workbooks. For a file you have verified, follow Microsoft's guidance on removing the internet-origin mark:

  1. Save the workbook to your computer and close it in Excel.
  2. Open File Explorer and locate the saved file.
  3. Right-click the file and select Properties.
  4. On the General tab, look for the Unblock checkbox near the bottom of the window.
  5. If it is present, select Unblock, then Apply and OK.
  6. Reopen the workbook in Excel and check whether a macro warning remains.

Unblocking removes the file's internet-origin mark; it does not inspect or certify the macro code. Other macro settings or organisation policies can still prevent it from running.

If Unblock is missing, move on to the warning and Trust Center checks below. Files on network shares can be subject to additional restrictions, so ask IT to review the location if a shared workbook remains blocked.

Enable macros for an individual trusted workbook

If Excel displays a macro Security Warning with Enable Content, you can approve that workbook without allowing macros in every file you open.

  1. Open the workbook and confirm that it is the file you intended to use.
  2. Select Enable Content in the security message bar.
  3. If Excel asks whether to make the document trusted, confirm only after checking its source and purpose.

Excel can remember a trusted-document decision. Treat this as permission for the workbook's active content, rather than a routine button to dismiss.

Check notification settings if the prompt is missing

On a personal computer, you can review the setting that allows macros to be approved individually:

  1. In Excel, select File, then Options.
  2. Select Trust Center, then Trust Center Settings.
  3. Open Macro Settings.
  4. Select Disable VBA macros with notification, or Disable all macros with notification if that is the wording shown.
  5. Select OK to close the settings windows, then close and reopen the workbook.

This setting keeps macros disabled initially and allows notifications where permitted. It does not override the internet-file block or administrator policies. Microsoft's macro settings instructions explain these options and the trusted-document process.

Avoid choosing the option that enables all VBA macros: it permits potentially dangerous code to run without confirmation. These Trust Center changes apply to Excel, rather than every Office application.

Handle Protected View separately

Protected View opens potentially unsafe files with restrictions so you can inspect their contents. If you trust the file and need to edit it, select Enable Editing when that option is available. Then check for any separate macro warning.

Keep the general Protected View protections enabled. Disabling them for all internet files or attachments is unnecessary for troubleshooting one workbook. See Microsoft's Protected View guidance if editing remains restricted or Excel reports a problem with the file.

Use a trusted location for a controlled workflow

A trusted location can suit a recurring, verified reporting process. Files stored there bypass some Office security checks, so use a dedicated folder whose contents you control.

  1. Create a folder specifically for approved macro workbooks.
  2. In Excel, open File, Options, Trust Center, then Trust Center Settings.
  3. Select Trusted Locations, then Add new location.
  4. Browse to the dedicated folder and confirm the selection.
  5. Select OK to close the settings windows, then place only verified workbooks in that folder.

Do not designate your entire Downloads folder as trusted. Any file placed in a trusted folder benefits from that trust. Microsoft's trusted location instructions also explain how to remove a folder when it is no longer needed.

Check other causes if the macro still will not run

Browser and file format limitations

Excel for the web cannot run VBA macros. Open the workbook in the desktop app if you need to use them.

Also check that the workbook still contains its macros. A standard .xlsx file cannot store VBA macros; use a suitable format such as .xlsm when saving a macro workbook. Microsoft's macro workbook guidance explains the formats that preserve them. Changing an extension cannot restore code already removed from a file.

Managed computers and unrelated Office errors

If settings are greyed out or the block persists on a work or school computer, give IT the exact warning, workbook location and source. Ask for an approved way to use that workbook rather than repeatedly changing security options.

An Office activation message needs separate troubleshooting. If that is the warning you see, consult the guide to activating Microsoft Office using CMD. If you are checking licence information, see the guide to finding an Office product key using Command Prompt. Neither process grants a workbook permission to run macros.

For other application issues, browse the Microsoft Office guides.

Next, make a backup of your verified workbook and follow the steps that match its warning before running the intended macro.

Other editions for separate workloads

Other editions for separate workloads; prices in AUD, confirm the total on the listing.

How to check this worked

  1. Open Settings, System, Activation and confirm the edition shown.
  2. Enter the key and run activation; expect a green tick within a minute.
  3. Reboot and re-check activation survives the restart.

FAQ

What else should you know before buying?

What do I need before starting?
Read the requirements and confirm the edition first; the steps assume the machine is compatible.
How do I know the licence is genuine?
Activate on Microsoft's servers and check Settings, System, Activation. A working activation is the test.
Is this a subscription?
Keys sold here are one-time lifetime licences. Microsoft 365 plans are billed by Microsoft instead.
What if the key fails?
Email hi@ms.codes with the order number and a screenshot. Replacement or refund applies within 30 days.

Check who prepared and reviewed this guide

Written by
MS.Codes editorial
Reviewed by
Support team

Last verified: (source review; see test status above).

Recent Post