Enable macros in a workbook
- 1Open the .xlsm. A yellow bar reads: SECURITY WARNING Macros have been disabled.
- 2Select Enable Content.
- 3Now run the macro: Alt+F8, pick it, Run.
Excel opens a macro workbook with its macros switched off and says so on a message bar. Enable Content switches them on for that file. Nothing in Trust Center needs changing.
What the MO-211 task asks
In our MO-211 practice exams this comes before a task that runs a macro the workbook already holds: “Macros must be enabled for this one: with the Admin sheet active, run the shipped … macro so it writes … into Admin!A1.” Another: “With macros enabled, run the shipped … routine; its stamp … must appear in J1 of the Ledger sheet.”
Enabling macros leaves nothing in the saved file, so the grader checks what the macro did: the value it writes must be in the cell. If macros are still disabled, the macro does not run and the cell stays empty.
A workbook you downloaded may show a red bar instead, with no Enable Content button. The fix is on the file, not in Excel: see the examples.
Worked examples
Set up the grid below to follow along. Each example starts from it as shown; every result is what Excel showed.
| A | B | |
|---|---|---|
| 1 | Build | Notes |
| 2 | Ready for review |
- 1Open Stamp.xlsm.
- 2Select Enable Content on the SECURITY WARNING bar.
- 3Alt+F8, StampBuild, Run.
Enable Content switches macros on for this workbook, and the macro runs.
- 1Open Stamp.xlsm and ignore the bar.
- 2Alt+F8, StampBuild, Run.
With macros disabled, Excel will not run it. Select Enable Content, and run it again.
- 1Open a copy of Stamp.xlsm downloaded from a website.
Windows marks downloaded files, and Excel blocks their macros outright: the bar offers only Learn More.
- 1Close the workbook.
- 2In File Explorer, right-click the file › Properties, tick Unblock, OK.
- 3Open it again.
Unblock removes the downloaded-from-the-internet mark from that one file. Excel's own settings stay as they were.
- 1Open Stamp.xlsm, select Enable Content.
- 2Alt+F8, StampBuild, Run.
The first example, done in Excel.
Watch it done in Excel
The last example above, recorded in real Excel on the same grid.
Exam traps
The X on the right of the bar hides it and leaves macros disabled. Select Enable Content.
Enable Content is the whole task. Lowering the macro security for every workbook is not asked for, and is a bad habit on a shared computer.
A SECURITY RISK bar has no Enable Content. Close the file, Unblock it in its Properties, and open it again.
An .xlsx cannot hold macros: the module is gone when the file is reopened. Keep macro workbooks as .xlsm.
FAQ
Does enabling macros change the file?
No. It is a choice Excel makes for you, not something saved in the workbook, so a grader can only see what the macro did.
Why is there no Enable Content button?
Either the workbook has no macros, or it came from the internet and shows SECURITY RISK. For the second, Unblock the file in its Properties.
Do I need the Developer tab?
No. Enable Content is on the message bar, and Alt+F8 (or View › Macros) runs a macro without it.
Try it under exam conditions
Take a full, timed MO-211 practice exam, upload the workbook you built, and get a score out of 1000 with a per-task breakdown of where the points went. Your first one is free.
No credit card needed.
