Please Note: This article is written for users of the following Microsoft Word versions: 97, 2000, 2002, and 2003. If you are using a later version (Word 2007 or later), this tip may not work for you. For a version of this tip written specifically for later versions of Word, click here: Attaching Macros to Documents.

Attaching Macros to Documents

Written by Allen Wyatt (last updated March 5, 2020)
This tip applies to Word 97, 2000, 2002, and 2003


If you teach other people how to use Word, it is not unusual to prepare sample documents that your students can use while learning. If you need to teach them how to work with macros, you may even attach some sample macros to the documents you prepare for them. This is easy enough to do, but making it so your students can utilize the macros in the documents may not be so easy.

When the student opens your sample document (with sample macros attached), he or she may see a message indicating that the macros have been disabled. This behavior is normal for Word, and there is no way to disable it from within the macro or the document itself. The behavior is controlled by the security settings on the student's machine. Your student can check these settings in this manner:

  1. Choose Macro from the Tools menu. Word displays a submenu.
  2. Choose Security from the submenu. Word displays the Security dialog box.
  3. Make sure the Security Level tab is selected. (See Figure 1.)
  4. Figure 1. The Security Level tab of the Security dialog box.

Notice that there are three or four possible settings on the tab depending on your version of Word: Low, Medium, High, and Very High. If High or Very High are selected, then any macros attached to a document are automatically disabled, and your students won't be able to use your sample macros. The solution, then, is for your students to choose either the Medium or Low setting. The problem with choosing these lower settings, of course, is that there is a greater risk that the student could inadvertently load a document that contains malicious macro code. (Not your sample document, of course, but perhaps from a downloaded document or a friend's document.)

In some networked environments that have strong security measures in place, the student may not be able to change the security settings in Word. Instead, your network administrator may need to make the changes. This could take some negotiation on your part, as instructor, to see if you can get the settings changed.

Another possible solution is to place your sample macros in a template that is accessible to all the students through a network folder. Once in the template, then your students can create a document based on that template, and the macros should be available.

Perhaps the best solution, however, is to find a way to digitally sign your macros so that they are "trusted." If Word believes that macros are from a trusted source, it will load them automatically, even if the student has their security setting on High. Information on how to do this is quite involved. A good place to start looking for information is in the Word online Help system. Do a search for "Security Levels in Word."

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 (578) applies to Microsoft Word 97, 2000, 2002, and 2003. You can find a version of this tip for the ribbon interface of Word (Word 2007 and later) here: Attaching Macros to Documents.

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

Preventing Changes to Formatting and Page Size

When you create workbooks for others to use, you might want to make sure that they can't change the formatting and paper ...

Discover More

Printing Comments

Comments can be a boon when you want to annotate your worksheets. If you want, you can instruct Excel to print the ...

Discover More

Replacing Links with Values

Need to get rid of the links in your workbook but save the values that were retrieved by those links? It could be easy or ...

Discover More

The First and Last Word on Word! Bestselling For Dummies author Dan Gookin puts his usual fun and friendly candor back to work to show you how to navigate Word 2013. Spend more time working and less time trying to figure it all out! Check out Word 2013 For Dummies today!

More WordTips (menu)

Deleting a Macro

Macros are often created to accomplish a specific task, after which they are no longer needed. If you need to delete a ...

Discover More

Hiding Macros

Don't want a particular macro to be visible in the Macros dialog box? Once you understand the criteria that Word uses ...

Discover More

Disabled Macros

Did you recently upgrade from Word 97 to a later version of Word, only to find that your macros no longer work? 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 two more than 7?

There are currently no comments for this tip. (Be the first to leave your comment—just use the simple form above!)


This Site

Got a version of Word that uses the menu interface (Word 97, Word 2000, Word 2002, or Word 2003)? This site is for you! If you use a later version of Word, visit our WordTips site focusing on the ribbon 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.