Fix Macro Assignment to a Button in Excel for Mac
Question details
The user needs to assign a VBA macro to a new button in Excel for Mac and check version compatibility.

- Product
- Microsoft Excel for Mac 2011
- Device & OS
- Mac; macOS version not provided
- Scenario
- Assigning an available workbook macro to a new button and assessing compatibility with newer Excel and macOS versions.
- Observed behavior
- The user cannot assign the macro to the new button.
Open the workbook and identify whether the new button is a Forms control, a shape, or an ActiveX control. Confirm that you trust the workbook before changing macro security settings.
Check the Workbook, Macro, and Button Type
Use these checks when a macro does not appear in the assignment list or a button cannot be assigned.
Choose File > Save As and select Excel Macro-Enabled Workbook (.xlsm) if the workbook is not already in a macro-enabled format.
Open Tools > Macro > Macros and look for the macro in the workbook. For a button assignment, use a public Sub procedure with no arguments in a standard VBA module.
On the Developer tab, insert a Button from the Forms controls and draw it on the sheet. Excel for Mac does not support ActiveX controls.
Select the macro in the Assign Macro dialog and click OK. If the dialog does not appear, right-click or Control-click the Forms button and choose Assign Macro.

Review Macro Security Settings
Check security settings if the macro is present but is blocked from running.
Check Excel and macOS Compatibility Before Updating
Use this approach if the workbook was created in Excel for Mac 2011 or must run on a newer Mac.
Open Excel Workbooks with WPS Office
WPS Office is a free, lightweight alternative with a familiar spreadsheet interface and support for common Excel formats, making it easy to move everyday spreadsheet work. It does not fix Excel for Mac's macro assignment or compatibility issues; test any VBA-dependent workbook before relying on it.

Frequently Asked Questions
Why doesn't my macro appear in the Assign Macro list?
Check Tools > Macro > Macros to see whether Excel can find it. A button-compatible macro should generally be a public Sub with no arguments in a standard module, and the workbook must be open.
Can I use an ActiveX button in Excel for Mac?
No. Excel for Mac does not support ActiveX controls. Insert a Forms button from the Developer tab and assign the macro to it instead.
Which workbook format should I use for VBA macros?
Choose File > Save As and save the workbook as an Excel Macro-Enabled Workbook (.xlsm). An .xlsx file cannot retain VBA macros.
Will Excel for Mac 2011 run on a newer macOS?
Excel for Mac 2011 is a 32-bit application and cannot run on macOS Catalina or later. Check your Mac's compatibility and the system requirements for a supported Excel version before upgrading.




