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
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.
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.
You are guest
or post as a guest, but your post won't be published automatically.
- To post as a guest, your comment is unpublished.· 1 years agoIt 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.· 2 years agoThanks for these solutions
- To post as a guest, your comment is unpublished.· 4 years agoHello there, i am interested ebaccdafdaafcbbd
- To post as a guest, your comment is unpublished.· 4 years agoI 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.· 4 years agoMany thanks It is very helpful to start
- To post as a guest, your comment is unpublished.· 4 years agoHow do I determine which macro is associated with a button?
- To post as a guest, your comment is unpublished.· 5 years agoI want to include individual KU commands in a macro. How can I do that? So far all I can get is
I want to be able to select a command withing KU to execute.
- To post as a guest, your comment is unpublished.· 5 years agoHello! 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?
- To post as a guest, your comment is unpublished.· 5 years agoI 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.· 5 years agoI'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.· 5 years agoHow to creat the Macro
- To post as a guest, your comment is unpublished.· 5 years agoAwesome!
- To post as a guest, your comment is unpublished.· 6 years agoI am happy with this web side