Hi, David Dietz
Macro settings are only one part of the problem. If the workbook is in the wrong format, opened in the web version, or the macro is stored somewhere else, Excel can look “enabled” but still have no usable macro to run.
Besides the solutions provided by the Q&A Assist, here are some suggestions you can try:
First, check the file type. If the file ends in .xlsx, macros will not run from it. Open the file in Excel desktop, choose File > Save As, and save it as Excel Macro-Enabled Workbook (*.xlsm). If the file was already saved as .xlsx after the macro was created, the macro code may have been removed, so you may need an older copy of the file.
Also make sure you are not using Excel for the web. Excel online can open .xlsm files, but VBA macros do not run there. Use Open in Desktop App and test it again.
If the macro was created on another computer, it may have been saved in that person’s Personal Macro Workbook instead of inside the file. In Excel desktop, press Alt + F11 and check whether the workbook actually contains modules/code. If there is no code in that workbook, ask the sender to resend the real .xlsm file with the macro included.
It is also recommended that you test the macro from Developer > Macros instead of using a button. If it runs from there, the button may simply be linked to the wrong macro name. If it does not run, open the VBA editor and use Debug > Compile VBAProject to check whether the macro has an error or missing reference.
Thank you for your patience in reading, I hope this information has been helpful to you.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment."
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.