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

Selecting Individual Cells in a Table

Many times before applying formatting or doing another operation, you need to select an individual cell in a table. Here's ...

Discover More

Detecting Types of Sheets in VBA

When processing workbook information in a macro, you may need to step through each worksheet to make some sort of changes. It ...

Discover More

Transposing and Linking

Sometimes it is helpful to look at data that is rotated 90 degrees. Excel allows you to use Paste Special to transpose data, ...

Discover More

Save Time and Supercharge Excel! Automate virtually any routine task and save yourself hours, days, maybe even weeks. Then, learn how to make Excel do things you thought were simply impossible! Mastering advanced Excel macros has never been easier. Check out Excel 2010 VBA and Macros today!

MORE EXCELTIPS (MENU)

Changing Directories in a Macro

Need to specify which directory on your hard drive should be used by a macro? It's easy to do using the ChDir command.

Discover More

Setting Program Window Size in a Macro

The macro programming language used in Excel gives you a great many tools that allow you to modify the way that Excel appears ...

Discover More

Creating a String in a Macro

Need to put together a bunch of characters to create a text string? You can do it in your macros by using the String ...

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 for this tip:

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. 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 two more than 9?

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.

Links and Sharing