Adding a Macro to a Toolbar

by Allen Wyatt
(last updated October 12, 2013)

5

Word 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. How you do this depends on which version of Word you are using.

If you are using a version of Word prior to Word 2007, then follow these steps:

  1. Choose Customize from the Tools menu. Word 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.
  6. In the list of Categories, choose the Macros entry. Your macros should then appear in the Commands list.
  7. In the Commands list, select the macro you want assigned to a toolbar.
  8. Using the mouse, drag the macro from the Commands list to the location on the toolbar where you want it to appear.
  9. When you drop the macro, it appears on the toolbar.
  10. To add more macros, repeat steps 6 through 8.
  11. Click on Close.

Word 2007 is different; it doesn't technically have toolbars like older versions of Word had. You can't make additions or changes to the ribbon, but you can add macros to the Quick Access toolbar. Follow these steps:

  1. Click the Office button and then click Word Options. Word displays the Word Options dialog box.
  2. At the left side of the dialog box, click the Customize option.
  3. Using the Choose Commands From drop-down list, choose Macros.
  4. In the list of available macros, select the one you want assigned to the Quick Access toolbar.
  5. Click the Add button. The command now appears at the right side of the dialog box.
  6. Click the OK button. The command now appears on the Quick Access toolbar.

WordTips is your source for cost-effective Microsoft Word training. (Microsoft Word is the most popular word processing software in the world.) This tip (1879) applies to Microsoft Word 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

Rounding to Even and Odd Values

Want to round values so they are always even or odd? You can do it quickly and easily by using the EVEN and ODD worksheet ...

Discover More

Table Won't Flow to Second Page

Have you ever created a table that never seems to flow to a second page, even when it should? This could be caused by any ...

Discover More

Changing Existing Captions

Word allows you to automatically create captions for various elements of your document, such as figures and tables. These ...

Discover More

Comprehensive VBA Guide Visual Basic for Applications (VBA) is the language used for writing macros in all Office programs. This complete guide shows both professionals and novices how to master VBA in order to customize the entire Office suite for their needs. Check out Mastering VBA for Office 2010 today!

MORE WORDTIPS (MENU)

Adding Smart Quotes through Macro Text

When text is added to your document by a macro, and that text includes quotes or apostrophes, Word won't change the quotes or ...

Discover More

Highlighting Every Thousandth Character

Not satisfied with the detail provided by the Word Count feature in Word? Perhaps you want to actually know where every one ...

Discover More

Changing ToolTips for a Macro Button

Want to change the ToolTip that appears when you hover the mouse over a button on a toolbar? It's a bit more involved than ...

Discover More
Subscribe

FREE SERVICE: Get tips like this every week in WordTips, 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 8 - 1?

2016-03-13 08:42:21

Priyanka

please insert a images to easily understand


2015-12-15 09:49:09

Walter Greulich

First, I would like to answer the question of Anne.

You probably mean Word 2008 for Mac. In this version there is no macro functionality at all. So no chance of adding macros to a toolbar.

Now to Linda:

Add-Ins in Word are of two sorts: so-called Com-Add-Ins can only be integrated by installing a particular program (like Adobe Acrobat); they cannot be influenced by the (typical) user. The other sort are usual Word template files, which have to be stored in the Startup directory for becoming an Add-In. You can use the same file, being outside the Startup directory, by adding it to the list of global templates. As it is a usual file, you can handle it like other Word files with regard to adding macros to a toolbar. That means: in Word 2003 or earlier you can place a macro on one of the usual toolbars. The Quick Access Toolbar of Word 2007 does not "belong" to this kind of files or templates. Therefore, the QAT can be equipped with a macro completely independent of add-ins or other Word templates. The QAT is always there and macros on it can be used in all your Word documents on your PC.


2015-12-14 16:57:44

Linda Davino

Thank you - can you please tell me how to add the macros to Add-Ins.


2015-06-02 01:12:23

Anne Poremskis

Hi There,

Thank you for the tips above, but can you tell me how to achieve the same task in Word 2007 for Mac!

I have searched everywhere,
so frustrating...

Cheers
Anne


2015-03-18 01:22:31

p.anvesh reddy

excellent no words.....


Newest Tips
Subscribe

FREE SERVICE: Get tips like this every week in WordTips, 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
Share