You can assign macros to graphics in Excel by first selecting the graphic, then going to the "Developer" tab on the ribbon. In the "Code" group, click on the "Macros" button. This will open the Macro dialog box. In the Macro dialog box, select the macro that you want to assign to the graphic, then click on the "Options" button. This will open the Options dialog box. In the Options dialog box, select the "Run macro on" option and choose "Click". Click on the "OK" button to close the dialog box.