Thanks for sharing the details, Jerome! But the feature you're asking has been removed. Excel for the Web no longer supports assigning scripts to shapes.
But here's what you can do instead:
Use an Office Script Triggered by a Button in a Power Automate Flow
You can create a simple Power Automate flow:
- Create a flow then choose “Run script”
Add a "Manually trigger a flow" button
This creates a button in Power Automate that runs your script anytime
This is the closest current replacement for an Excel-sheet button.
See if this helps. If you need further assistance just let me know.
Best regards,
Kimberly