Adding a Macro to a Toolbar

by Allen Wyatt
(last updated December 31, 2013)

4

Excel is a very flexible program. You can configure it to work just about any way you can imagine. For instance, you can create a macro, and then add it to a toolbar. To do this, follow these steps:

  1. Choose Customize from the Tools menu. Excel displays the Customize dialog box.
  2. Make sure the Toolbars tab is selected. (See Figure 1.)
  3. Figure 1. The Toolbars tab of the Customize dialog box.

  4. In the list of toolbars, make sure there is a check mark beside the toolbar to which you want your macro added. The check mark ensures that the toolbar is displayed on the screen.
  5. Click on the Commands tab. (See Figure 2.)
  6. Figure 2. The Commands tab of the Customize dialog box.

  7. In the list of Categories, choose the Macros entry. Your macros should then appear in the Commands list.
  8. In the Commands list, select the macro you want assigned to a toolbar.
  9. Using the mouse, drag the macro from the Commands list to the location on the toolbar where you want it to appear.
  10. When you drop the macro, it appears on the toolbar.
  11. To add more macros, repeat steps 6 through 8.
  12. Click on Close.

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (2926) applies to Microsoft Excel 97, 2000, 2002, and 2003.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He  is president of Sharon Parq Associates, a computer and publishing services company. ...

MORE FROM ALLEN

Understanding Microdermabrasion

Want smoother, healthier-looking skin? Some people think you can achieve it with microdermabrasion treatments.

Discover More

Filtering Columns for Unique Values

Given a long list of names, part numbers, or what-have-you, you may need to determine the unique values within the list. The ...

Discover More

Where Do You Want Your Endnotes?

Endnotes can be placed in a couple of different places in your document, not just at the very end. Here's how you can ...

Discover More

Program Successfully in Excel! John Walkenbach's name is synonymous with excellence in deciphering complex technical topics. With this comprehensive guide, "Mr. Spreadsheet" shows how to maximize your Excel experience using professional spreadsheet application development tips from his own personal bookshelf. Check out Excel 2013 Power Programming with VBA today!

More ExcelTips (menu)

Creating a Directory in a Macro

One of the things you can do with macros is to work with disk files. As you do so, you may have a need to create a new ...

Discover More

Swapping Two Numbers

When programming macros, variables are used extensively. At some point you might want to exchange the values held by two ...

Discover More

Out of Memory Errors when Accessing the VBA Editor

It can be frustrating when you get error messages doing something that you previously did with no errors. If you get an out ...

Discover More
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.

Comments

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 8Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is 5 + 0?

2015-03-16 02:26:03

christopher montilla

I work at a hospital as admittig clerk
I would like to know if I could increment a seriesof six numbers but beginning from the two inner digits in MS Excel

Ex. 210098
210198
210298 ...
only thetwo inner digits increment before the sixth digit increment when the two inner digits reach a count of 99

Ex. 219798
219898
219998

When it reaches 219998
the sixth digit will increment by 1
say, 210099


2013-12-31 14:23:08

awyatt

Ray,

Thanks for the heads-up. I'll get it fixed ASAP.

-Allen


2013-12-29 18:51:47

Jim Boyer

Good tip. I've worked on making some toolbars and macros in Excel 2003, but when I click on macros category, what shows up in the commands list is NOT the list of macros I have, but only two items: Custom menu item, custom button. How am I missing what you describe in step 5?


2013-12-29 13:30:04

Ray Austin

Allen,

At the start of this tip, I reckon the 1st word is the wrong Word !!

"Word is a very flexible program."

Ray


This Site

Got a version of Excel that uses the menu interface (Excel 97, Excel 2000, Excel 2002, or Excel 2003)? This site is for you! If you use a later version of Excel, visit our ExcelTips site focusing on the ribbon interface.

Newest Tips
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.