Here's what to do, if the above error message appears while opening a macro-enabled file (XLS, XSLM, XLSB):
1. Click the File tab (top left tab in the Excel window).
2. Click the Excel Options button.
3. Click Trust Center in the left menu.
4. Click Trust Center Settings in the right window.
5. In the newly opened window, click Macro Settings in the left menu.
6. Select Enable all macros .
7. Click OK.
8. Click OK again.
9. Close all Office applications and restart Excel.
How to enable macros in Excel 2010
To enable macros in Excel 2010, follow these instructions:
1. Click the File tab (top left tab in the window).
2. Click the Excel Options button.
3. Click Trust Center in the left menu.
4. Click Trust Center Settings in the right window.
5. In the newly opened window, click Macro Settings in the left menu.
6. Check the Enable all macros (not recommended; potentially dangerous code can run) option .
How to enable macros in Excel 2007
Click the Office button (top left button in the window) and follow the same procedure as above.
Disable macros in Excel
1. Disable all macros without notification
Assuming you never use any macros and want to disable them, you can select this option. The next time you open a macro-enabled Excel workbook, you won't see any notifications about macros.
However, you can still open the Visual Basic editor and inspect the code. But the macros in the file are all in Design mode.
The macros in the file are all in Design mode.
When you press the button F5on your keyboard or click the Run Sub button on the toolbar, you will see information like this image.
Notification when pressing F5 on the keyboard or clicking the Run Sub button
The macros in this file are all disabled and you cannot run any of them. This is the effect of the first option in the macro settings.
2. Disable all macros with notification
By default, Excel will select this option for macro settings. And the difference between this option and the previous option is the message. In this option, when you open a macro-enabled workbook, you will see a security warning. And there is also an Enable Content button .
Enable Content button in Security Warning
If you open the Visual Basic editor directly and run the macro, you will see the message that macros are disabled again. But now you are sure that the macro is safe and can open the file again. Then click the Enable Content button under Security Warning. Therefore, the macros in this macro-enabled file are available. Moreover, the next time you open the file, you will not see this warning. Excel is smart enough to record your actions and it remembers that this file is safe.
3. Disable all macros except digitally signed macros
This is the third option. This option is pretty self-explanatory. When you select this option, all macros will be disabled. But there are certain macros that exist and they have digital signatures. These macros are considered safe. So with this option, you can run digitally signed macros on your computer.