How to Create a Custom Macro Button in Excel
How to Create a Custom Macro Button in Excel
Macros in Excel can save a great deal of time with repetitive tasks. By assigning macros to custom buttons, you can save even more time by bringing your macro only one-click from execution.
Steps

Excel 2003

Click Tools → Customize.

Click the Toolbars tab.

Click the New button.

Type a name for your new toolbar.

Click OK.

Click the Commands tab.

Select Macros from the list on the left.

Click and drag the Custom Button icon from the list on the right to your new toolbar. The new button is represented by a smiley face.

Right-click on the newly added button.

Rename the button to your liking or leave the default name in the Name: field.

Click Edit Button Image... and change the image for your button or leave it the same. The Button Editor has controls similar to the Windows Paint program.

Click "Assign Macro."

Select a macro you created from the list.

Click OK.

Click Close on the Customize dialog box.

Excel 2007

Click the little arrow pointing down on the Quick Access Toolbar.

Click More Commands.

Select Macros from the Choose commands from list box.

Select your macro from the left hand column and click the Add button.

Select the macro that you just added from the right hand column and click the Modify button.

Click the button image you want to represent your macro, type the display name you want in the Display name text box and click the 'OK' button.

Excel 2010

Make sure the Developer tab is displayed. The Developer tab is a tab in the Ribbon at the top of Excel. If it is not displayed, follow these directions in order to display it: Click File → Options → Customize Ribbons Find the Developer check box in the Main Tabs section and click it. Press "OK" when you are done.

Add "New Group" under the Developer Tab to create a custom group for the command/button that will be created.

Still in the Customize Ribbon, click on the dropdown menu to choose command. Select Macro. Thereafter, all recorded macros will appear in the left box.

Select the desired macro for button creation (make sure the newly added group is highlighted, you will know if the macro was added when it appear in the right box under your new group).

You may now customize your button. Right-click and select Rename.

If everything is set, Click "OK"

Excel 2013

Make sure the Developer tab is displayed. The Developer tab is a tab in the Ribbon at the top of Excel. If it is not displayed, follow these directions in order to display it: Go to Excel → Preferences → Ribbon (Under Sharing and Privacy) Under Customize, check the box next to the Developer tab, and press "OK"

Click on the Developer tab and click Button. The Button icon is under the Form Controls group in the Developer tab and looks like a rectangular button.

Place your button. Place your cursor where you'd like the button to go and drag to select the size of the button. You can make the button as small or as large as you'd like, given your needs. If you wish, you can move the button around after placement.

Assign a macro when prompted. Excel should automatically prompt you to assign a macro to your button after you finish placing it. Once you've selected your macro, click "OK." If you are unfamiliar with what macros are or how to record them, read more. You should have a macro already built before you create the button.

Format the button. Right-click on the newly created button and select "Format Control." Select Properties → Don't move or size with cells → OK. This helps you maintain the size and placement of your button. If you don't have this property chosen, your button size and placement will change if you have it add, delete, or move cells.

Rename the button. Change the text in the button to say whatever you'd like it to.

What's your reaction?

Comments

https://kapitoshka.info/assets/images/user-avatar-s.jpg

0 comment

Write the first comment for this!