Log in
x
or
x
x
Register
x

or
0
0
0
s2sdefault

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

Insert macro button in the Quick Access Toolbar on Ribbon

Easily remove all macros from multiple closed workbooks

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. Click for 60-day free trial!
ad insert checkbox option button 1


arrow blue right bubbleInsert 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 macro buttons to go to (each) other worksheets in Excel

For inserting a macro button to go to another worksheet, normally you have to finish all above 5 steps, and it will be quite tedious to insert many macro buttons to go to each worksheet in the current workbook. But, Kutools for Excel’s Create List of Sheet Names utility enables you to quickly insert multiple macro buttons to go to each worksheet. Click for 60-day free trial!
ad create list of sheet names 1
This Create List of Sheet Names utility also supports to batch insert multiple hyperlinks to go to each worksheet (or other worksheets) in current workbook.


arrow blue right bubbleInsert 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

Tip: In this Video, Kutools tab and Enterprise tab are added by Kutools for Excel. If you need it, please click here to have a 60-day free trial without limitation!

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. Click for 60-day free trial!

  1. Remove All Macros: This utility enables to delete all macros in active workbook with only one click.
  2. 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


Recommended Productivity Tools

Office Tab

gold star1 Bring handy tabs to Excel and other Office software, just like Chrome, Firefox and new Internet Explorer.

Kutools for Excel

gold star1Amazing! Increase your productivity in 5 minutes. Don't need any special skills, save two hours every day!

gold star1200 New Features for Excel, Make Excel Much Easy and Powerful:

  • Merge Cell/Rows/Columns without Losing Data.
  • Combine and Consolidate Multiple Sheets and Workbooks.
  • Compare Ranges, Copy Multiple Ranges, Convert Text to Date, Unit and Currency Conversion.
  • Count by Colors, Paging Subtotals, Advanced Sort and Super Filter,
  • More Select/Insert/Delete/Text/Format/Link/Comment/Workbooks/Worksheets Tools...

Screen shot of Kutools for Excel

btn read more      btn download     btn purchase

Say something here...
symbols left.
You are guest ( Sign Up? )
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.
    Smithk48 · 2 years ago
    Hello there, i am interested ebaccdafdaafcbbd
  • To post as a guest, your comment is unpublished.
    Mayuri · 2 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 · 2 years ago
    Many thanks It is very helpful to start
  • To post as a guest, your comment is unpublished.
    Chris Flach · 2 years ago
    How do I determine which macro is associated with a button?
  • To post as a guest, your comment is unpublished.
    Bob James · 2 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.