Making Macros Available without Using the Normal Template

Written by Allen Wyatt (last updated October 12, 2024)
This tip applies to Word 2007, 2010, 2013, 2016, 2019, Word in Microsoft 365, and 2021


1

Michael has a set of macros that copy selected content from one open document to another open document. He's put these macros in a template in an attempt at portability, but they don't seem to be available within documents based on the template. Michael wonders if there is a way—short of putting them in the Normal template—to make these macros available to other open documents.

The traditional way to do this is to create your own template, which means that you save it using the DOTM extension. (Simply save the file as a macro-enabled template. This sets the extension properly.) Make sure that the template includes all of the macros that you want to universally access. (It should not contain macros that you want to keep in your Normal template, instead.)

When your template is set up and saved just the way you want it, follow these steps:

  1. Display the Word Options dialog box.
  2. At the left side of the dialog box, click Trust Center.
  3. Click the Trust Center Settings button. Word displays the Trust Center.
  4. At the left side of the Trust Center, click Trusted Locations. (See Figure 1.)
  5. Figure 1. The Trusted Locations area of the Trust Center.

  6. In the list of locations, locate and click once on the location that contains the word "Startup."
  7. Note the full path for the location, located just below the list of locations. (Jot it down or copy it to somewhere like a temporary text document so you can refer to it later.) If, in your version of Word, you cannot see the full path in the dialog box, click the Modify button and you can see it in the resulting dialog box.
  8. Repeatedly click the Cancel button until you've closed all the open dialog boxes.

With the full path name in hand (step 6) you can get out of Word. You want, at this point, to locate the template you created earlier and copy it to the folder specified by the path name. It is in this folder (the Startup folder) that you place documents you want automatically loaded whenever you start Word. By placing the template there, you are assured that it will be opened when you start Word, and that the macros it contains will be available during your Word session.

You should note that the folder you discovered through the above steps (the one shown in step 6) is probably a hidden folder on your system. This may make it a bit tricky to track down, but you can search on my WindowsTips site (windows.tips.net) to find out how to display and use hidden folders.

There is one potential "gotcha" here: When you place the template in the Startup folder, the macros in the template can be run, but they cannot be directly edited. If you need to make changes to them (or add other macros to the template), you'll want to get out of Word and, within Windows, move the template out of the Startup folder. You can then load the template directly and make changes you desire. Then, save the template and again get out of Word. Finally, use Windows to move the template back to the Startup folder.

Note that once your template is fairly stable (the template you stored in the Startup folder), you can share that template with others and invite them to store it in their own Startup folder. You'll need to give them directions, of course, on how to do that storing, as noted above.

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 (4632) applies to Microsoft Word 2007, 2010, 2013, 2016, 2019, Word in Microsoft 365, and 2021.

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

Losing Data in a Shared Workbook

When you create a shared workbook, you run the risk of losing some of the data in that workbook. Here's a discussion ...

Discover More

Determining the Number of Fonts Available

When creating a macro, you may need to figure out how many fonts are available to Word. You can do this using the ...

Discover More

Turning Off Automatic Sorting in PivotTables

Tired of your data being sorted when you create a PivotTable? Excel allows you to specify how the sorting should occur by ...

Discover More

Create Custom Apps with VBA! Discover how to extend the capabilities of Office 2013 (Word, Excel, PowerPoint, Outlook, and Access) with VBA programming, using it for writing macros, automating Office applications, and creating custom applications. Check out Mastering VBA for Office 2013 today!

More WordTips (ribbon)

Finding Long Lines

Word is very dynamic in how it "flows" text from one line to another and one page to another. In most cases we are ...

Discover More

Saving a Document in a Macro

If you develop a macro to process your document, you may want the macro to save the document to disk. This is easily done ...

Discover More

Creating a New Document in VBA

When working with documents in a macro, it makes sense that you may need to create a document from time to time. Here's ...

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 2 + 2?

2024-10-14 06:23:17

Sarah Patey

(see Figure 1 below)

I have a macro (one of Paul Beverley's) that enables me to call up the dialog to assign a keyboard shortcut. I went through this process and got the message above.
Would I need to assign my shortcuts in the DOTM file when I create it, and before moving it to the startup folder?

Figure 1. 


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.