

In this example, I will click on the macro named ‘GoodMorning Click the Macro name that you want to assign to this shape.In the Assign Macro dialog box, you will see a list of all the macros that you have in the workbook.This will open the assign macro dialog box In the menu options that appear, click on ‘Assign Macro’.Right-click on the shape on which you want to assign the macro.Now let’s see how to assign a macro to this shape. I prefer using a rectangle and it looks like a button and is more intuitive. Note that I have inserted a rectangle shape in this example, but you can insert whatever shape you want (such as a circle or triangle or arrow). Resize the rectangle and format it (give it a border, color, shade if you want).Īfter you have done the above steps, you will have a rectangle shape in the worksheet, and now we will assign a macro to this shape.This will insert a rectangle shape in the worksheet. You will notice that your cursor changes to a plus icon

In Shapes options, click on the Rectangle option.

