Download ArticleDownload Article

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.

Method 1
Method 1 of 4:

Excel 2003

Download Article
  1. How.com.vn English: Step 1 Click Tools → Customize.
  2. How.com.vn English: Step 2 Click the Toolbars tab.
    Advertisement
  3. How.com.vn English: Step 3 Click the New button.
  4. How.com.vn English: Step 4 Type a name
    for your new toolbar.
  5. How.com.vn English: Step 5 Click OK.
  6. How.com.vn English: Step 6 Click the Commands tab.
  7. How.com.vn English: Step 7 Select Macros from the list on the left.
  8. How.com.vn English: Step 8 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.
  9. How.com.vn English: Step 9 Right-click
    on the newly added button.
  10. How.com.vn English: Step 10 Rename the button to your liking or leave the default name in the Name:
    field.
  11. How.com.vn English: Step 11 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.
  12. Step 12 Click "Assign Macro.
    "
  13. How.com.vn English: Step 13 Select a macro...
    Select a macro you created from the list.
  14. How.com.vn English: Step 14 Click OK.
  15. How.com.vn English: Step 15 Click Close on the Customize dialog box.
  16. Advertisement
Method 2
Method 2 of 4:

Excel 2007

Download Article
  1. How.com.vn English: Step 1 Click the little arrow pointing down on the Quick Access Toolbar.
  2. How.com.vn English: Step 2 Click More Commands.
  3. How.com.vn English: Step 3 Select Macros from the Choose commands from list box.
  4. How.com.vn English: Step 4 Select your macro from the left hand column and click the Add button.
  5. How.com.vn English: Step 5 Select the macro that you just added from the right hand column and click the Modify button.
  6. How.com.vn English: Step 6 Click the 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.
  7. Advertisement
Method 3
Method 3 of 4:

Excel 2010

Download Article
  1. How.com.vn English: Step 1 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.
  2. Step 2 Add "New Group" under the Developer Tab to create a custom group for the command/button that will be created.
  3. How.com.vn English: Step 3 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.
  4. How.com.vn English: Step 4 Select the desired...
    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).
  5. How.com.vn English: Step 5 You may now customize your button.
    Right-click and select Rename.
  6. Step 6 If everything is set, Click "OK"
  7. Advertisement
Method 4
Method 4 of 4:

Excel 2013

Download Article
  1. How.com.vn English: Step 1 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[1] 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"
  2. How.com.vn English: Step 2 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.
  3. How.com.vn English: Step 3 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.
  4. How.com.vn English: Step 4 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.
  5. How.com.vn English: Step 5 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.
  6. How.com.vn English: Step 6 Rename the button.
    Change the text in the button to say whatever you'd like it to.
  7. Advertisement

Expert Q&A

Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
      Advertisement

      Video

      Tips

      • Try using the 2003 method for Excel versions earlier than 2003.
      • Alternatively, you may add your macro button to an existing toolbar in versions 2003 and earlier.
      • If you prefer, it will let you assign a shortcut key in the dialog box. This can prevent wrist strain and save time.
      Submit a Tip
      All tip submissions are carefully reviewed before being published
      Thanks for submitting a tip for review!
      Advertisement

      Warnings

      • The user interface on versions earlier than 2003 may be different so the 2003 method may not be exactly the same for those versions.
      • If you want a different button image than what version 2007 offers, you will need to download additional software that specializes in modifying user interfaces for Microsoft Office.
      Advertisement

      About This Article

      How.com.vn is a “wiki,” similar to Wikipedia, which means that many of our articles are co-written by multiple authors. To create this article, 13 people, some anonymous, worked to edit and improve it over time. This article has been viewed 485,699 times.
      How helpful is this?
      Co-authors: 13
      Updated: July 28, 2022
      Views: 485,699
      Thanks to all authors for creating a page that has been read 485,699 times.

      Is this article up to date?

      ⚠️ Disclaimer:

      Content from Wiki How English language website. Text is available under the Creative Commons Attribution-Share Alike License; additional terms may apply.
      Wiki How does not encourage the violation of any laws, and cannot be responsible for any violations of such laws, should you link to this domain, or use, reproduce, or republish the information contained herein.

      Notices:
      • - A few of these subjects are frequently censored by educational, governmental, corporate, parental and other filtering schemes.
      • - Some articles may contain names, images, artworks or descriptions of events that some cultures restrict access to
      • - Please note: Wiki How does not give you opinion about the law, or advice about medical. If you need specific advice (for example, medical, legal, financial or risk management), please seek a professional who is licensed or knowledgeable in that area.
      • - Readers should not judge the importance of topics based on their coverage on Wiki How, nor think a topic is important just because it is the subject of a Wiki article.

      Advertisement