Macros On the Quick Access Toolbar

Written by Allen Wyatt (last updated June 25, 2018)
This tip applies to Word 2007 and 2010


3

Valerie is having a problem with getting her macros to stay on the Quick Access Toolbar. She can create a macro and save it to the QAT, but when she closes Word and reopens it, the macro is no long on the toolbar. She wonders how to save the macro to the toolbar and not compromise security settings.

When you modify your Quick Access Toolbar, those changes are stored in one of two places, depending on the version of Word you are using. If you are using Word 2007, they are stored in a file called Word.QAT. If you are using Word 2010, they are stored in a file called Word.OfficeUI. You can use the search capabilities built into Windows to locate these files on your system.

It appears that what is probably happening is that your security settings (meaning, those imposed by your company) results in these files being either erased or regularly overwritten. If you are using Word 2010, you can determine if this is the case by not only adding a macro to the Quick Access Toolbar, but also making some customizations to the ribbon. (These customizations are also stored in Word.OfficeUI. If, when you restart Word, those changes are nowhere to be seen, then you can be fairly sure that the configuration file is being overwritten.

Perhaps the easiest way to deal with this is to make your changes, get out of Word, find the configuration file, and make a copy of that file. You can then—next time you are ready to start Word—check to see if the file has changed. (Just compare the existing version that will be loaded by Word with the copy you made.) If they are different, you can copy your backup into the place of the "official" configuration file and then start Word.

Such a procedure could easily be automated by creating a batch file to do the comparing and copying. If you prefer, you can also talk to your company's network administrators and see if there is anything that can be done to stop the overwriting in the first place.

Note:

If you would like to know how to use the macros described on this page (or on any other page on the WordTips sites), I've prepared a special page that includes helpful information. Click here to open that special page in a new browser tab.

WordTips is your source for cost-effective Microsoft Word training. (Microsoft Word is the most popular word processing software in the world.) This tip (11511) applies to Microsoft Word 2007 and 2010.

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

Updating Links in Copied Files

When you copy workbooks that contain links, you may be at a loss as to how to update those links. There are a couple of ...

Discover More

Pasting Numeric Values in Other Programs

When you paste information from Excel into other programs, you may get more than you actually want. It is not unusual for ...

Discover More

Protecting the Normal Template During an Update

When Microsoft decides to update your 365 system, you may find that it also overwrites your Normal template. This tip ...

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 (ribbon)

No Ribbon on New Documents

The way that you work with commands in Word is primarily through the ribbon. What do you do if the ribbon disappears when ...

Discover More

Making a Longer Quick Access Toolbar

The Quick Access Toolbar is where you put all the tools to which you need quick access. (Makes sense, huh?) There are ...

Discover More

Putting a Macro Name on the Quick Access Toolbar

In older versions of Word you could customize the program so that either icons or text (or both) could appear on the ...

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

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}] (all 7 characters, in the sequence shown) in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. 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 6 + 5?

2024-02-26 09:59:29

Shreepad SM Gandhi

Appreciate the following block

#[Fred.xlsx]Sheet1!C340
#[Fred.xlsx]Sheet1!C343
#[Fred.xlsx]Sheet1!C346

It worked wonderfully. Happy. Thanks.


2024-02-24 10:32:21

J. Woolley

@Alex Blakenburg
Excellent comment. Also, INDIRECT and OFFSET are both volatile functions.
See https://exceljet.net/glossary/volatile-function


2024-02-24 06:04:13

Alex Blakenburg

You need to be mindful of the fact that out of Index, Indirect & Offset, only INDEX will work on a Closed Workbook.
INDIRECT returns #REF! and OFFSET returns #VALUE! if the linked workbook is closed.
For more example, see > https://excelribbon.tips.net/T006035_Functions_that_Can_Access_Closed_Workbooks.html


This Site

Got a version of Word that uses the ribbon interface (Word 2007 or later)? This site is for you! If you use an earlier version of Word, visit our WordTips site focusing on the menu interface.

Videos
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.