A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
On Excel for Mac, macros are controlled at the app level rather than enabled per individual file in the way described.
To allow a macro-enabled workbook to run VBA:
- Open Excel.
- Select Excel > Preferences.
- Select Security.
- Choose one of these settings:
- Disable all macros with notification — recommended default. Excel prompts when a file contains macros.
- Enable all macros — allows all macros to run.
Use Disable all macros with notification if possible, then open the workbook and allow the macro when prompted. Only use Enable all macros if the file is trusted.
If the goal is to access or edit VBA code:
- Enable the Developer tab:
- Go to Excel > Preferences... > Ribbon & Toolbar.
- Under Main Tabs, check Developer.
- Open the workbook.
- On the Developer tab, select Macros to run a macro, or select Visual Basic to open the Visual Basic Editor.
Caution: enabling all macros allows all macro code to run without further warning.