Famille de feuilles de calcul Microsoft avec des outils pour l’analyse, le graphique et la communication des données.
Hello,
Thanks for posting in the Microsoft community.
I understand that in your existing Excel files, the buttons no longer activate the macros, even though the macros themselves still work. However, when you create a new Excel file, everything functions correctly. This issue is likely related to Excel’s security settings or file trust configuration.
Here are a few steps you can try to resolve the issue:
Check Macro Settings:
>> Open Excel and go to File > Options > Trust Center > Trust Center Settings > Macro Settings.
>> Select “Enable all macros” (for testing only—please revert to a safer setting afterward).
Add Trusted Locations:
>> In the Trust Center, go to Trusted Locations.
>> Add the folder where your Excel files are saved.
Unblock the Files:
>> Right-click on one of the affected Excel files in File Explorer.
>> Choose Properties.
>> If you see an “Unblock” checkbox at the bottom, check it and click OK.
Reassign the Macros to the Buttons:
>> Open one of the affected files.
>> Right-click on a button and choose Assign Macro.
>> Reassign the correct macro manually.
Try Opening Excel in Safe Mode:
>> Hold Ctrl and click the Excel icon.
>> This can help identify if an add-in is causing the issue.
Please let me know if these steps help or if the issue persists. I’ll be happy to assist you further.
Best wishes,
Peter | Microsoft Community Support