Note: The other languages of the website are Google-translated. Back to English
Log in  \/ 
Register  \/ 


How to insert a macro button to run macro in Excel?

You may load a useful macro with Microsoft Excel VBA. And every time when you apply the macro, you have to press keyboard shortcuts you set for this macro, or click View > Macro > Select the proper macro > Run. Think of easy ways to apply macros? Yes, you can create a button to run a specific macro either in QAT of Ribbon or working area in Microsoft Excel.

Insert macro button in working area of current workbook

This section will introduce the detailed tutorial about inserting a macro button in the working area of current workbook.

1. Firstly of all, show the Developer Tab in Ribbon as follows:
(1) In Excel 2010 or higher versions, please click the File > Options > Customize Ribbon, see the following screen shot. (View how in Excel 2007)
(2) In the right side, check the Developer option, and then click the OK button.

If you are using the Excel 2007, click the Office button > Excel Options> Popular, and check the Show Developer tab in the Ribbon option in the Top options for working with Excel section.

2. Secondly insert Macro Button in working area. Please click Developer > Insert, and then select the first option under the Form Controls section, see screenshot:

3. Draw a button in working area.

4. Then the Assign Macro dialog box pops up, select one macro you want to assign to this built button, and click OK button.

Now the button is valid to apply the macro.

5. It's optional to format the macro button based on your needs.
If you want to make the macro button easily understand and look nice, you can format it. You are able to change the text on button, change the assign macro, and format the control button with context menu by right clicking it.

Easily insert multiple checkboxes or option buttons at once in Excel

Normally we can only insert one checkbox or option button in a cell at a time with tedious steps in Excel. But Kutools for Excel’s Batch Insert Check Boxes utility and Batch Insert Option Buttons utility can help Excel users quickly insert multiple checkboxes or option buttons into all selected cells. Full Feature Free Trial 30-day!
ad insert checkbox option button 1

Insert macro button in the Quick Access Toolbar on Ribbon

If you insert the macro button in working area of current workbook, you can only apply this macro in this workbook. However, you can apply the macro in all workbooks if you add the macro button in the Quick Access Toolbar on Ribbon.

1. Click the arrow button at the top of ribbon, and select the More Commands… item in the drop down list. See the following screen shot:

2. In the Excel Options dialog box, Select the Macros item in the Choose commands from drop down box, see the following screen shot;

3. Select and highlight the macro that you will assigned to new button;

4. Click the Add button.

5. Now the selected macro name is added into the right box. Select the macro name in the right box. See the following screen shot.

6. Click the Modify button.

7. In the Modify Button dialog box, select one button symbol.

8. Click OK button.

Then go back to the QAT in Ribbon, you will get the new button assigned to the macro you selected in the Step 3.

Demo: Insert macro button in worksheet or Quick Access Toolbar

Kutools for Excel includes more than 300 handy tools for Excel, free to try without limitation in 30 days. Download and Free Trial Now!

Quickly remove all macros from active workbook or from all workbooks in many folders

Kutools for Excel provides two workarounds for Excel users to easily remove all macros in workbook. Full Feature Free Trial 30-day!

  • A. Remove All Macros: This utility enables to delete all macros in active workbook with only one click.
  • B. Batch Remove All Macros: This utility can batch remove all macros of multiple workbooks from many folders without opening these workbooks at all! See screenshot:
  • ad remove macros 1

The Best Office Productivity Tools

Kutools for Excel Solves Most of Your Problems, and Increases Your Productivity by 80%

  • Reuse: Quickly insert complex formulas, charts and anything that you have used before; Encrypt Cells with password; Create Mailing List and send emails...
  • Super Formula Bar (easily edit multiple lines of text and formula); Reading Layout (easily read and edit large numbers of cells); Paste to Filtered Range...
  • Merge Cells/Rows/Columns without losing Data; Split Cells Content; Combine Duplicate Rows/Columns... Prevent Duplicate Cells; Compare Ranges...
  • Select Duplicate or Unique Rows; Select Blank Rows (all cells are empty); Super Find and Fuzzy Find in Many Workbooks; Random Select...
  • Exact Copy Multiple Cells without changing formula reference; Auto Create References to Multiple Sheets; Insert Bullets, Check Boxes and more...
  • Extract Text, Add Text, Remove by Position, Remove Space; Create and Print Paging Subtotals; Convert Between Cells Content and Comments...
  • Super Filter (save and apply filter schemes to other sheets); Advanced Sort by month/week/day, frequency and more; Special Filter by bold, italic...
  • Combine Workbooks and WorkSheets; Merge Tables based on key columns; Split Data into Multiple Sheets; Batch Convert xls, xlsx and PDF...
  • More than 300 powerful features. Supports Office/Excel 2007-2019 and 365. Supports all languages. Easy deploying in your enterprise or organization. Full features 30-day free trial. 60-day money back guarantee.
kte tab 201905

Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!
officetab bottom
Say something here...
symbols left.
You are guest
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.
  • To post as a guest, your comment is unpublished.
    Laurent · 3 years ago
    It looks like it's easy to do it. If I want to insert a macro, i want to give it this function (click 1 time on it and it turn blue with the comment ON) (click a second time on it and it turn white with comment OFF) How can I do this? tHANKS
  • To post as a guest, your comment is unpublished.
    John Oyetola · 4 years ago
    Thanks for these solutions

  • To post as a guest, your comment is unpublished.
    Smithk48 · 6 years ago
    Hello there, i am interested ebaccdafdaafcbbd
  • To post as a guest, your comment is unpublished.
    Mayuri · 6 years ago
    I have already Macro file and its work properly but its run one by on i just one only one click and run my all Macro automatically.
  • To post as a guest, your comment is unpublished.
    Abirami r · 6 years ago
    Many thanks It is very helpful to start
  • To post as a guest, your comment is unpublished.
    Chris Flach · 6 years ago
    How do I determine which macro is associated with a button?
  • To post as a guest, your comment is unpublished.
    Bob James · 6 years ago
    I want to include individual KU commands in a macro. How can I do that? So far all I can get is
    Application.Run "'ICD-705.xlsm'!KU"
    I want to be able to select a command withing KU to execute.
  • To post as a guest, your comment is unpublished.
    Olivia Tan · 6 years ago
    Hello! I am trying to assign macro to a button but encountered the following error message:

    Formula is too complex to be assigned to object.

    What should I do?

    Best Regards,
    Olivia Tan
  • To post as a guest, your comment is unpublished.
    Debbie · 6 years ago
    I have a macro and need to extend the cells that calculate it goes to 245 and i would like ot to go to 1000
  • To post as a guest, your comment is unpublished.
    Rhonda · 7 years ago
    I'm opening an earlier version of Excel in WIN7, Excel 2010. All my macro control buttons are flashing like a marquis. How do I stop this?
  • To post as a guest, your comment is unpublished.
    Rick · 7 years ago
    How to creat the Macro
  • To post as a guest, your comment is unpublished.
    Zishan · 7 years ago

    Really Helped!
  • To post as a guest, your comment is unpublished.
    Raja D · 7 years ago
    I am happy with this web side