Microsoft KB Archive/166019

-

{| The information in this article applies to:
 * width="100%"|
 * Microsoft Word 97 for Windows

SUMMARY
Protection.doc is a document that furnishes macro virus protection by locking the macro project for the Normal template.

NOTE: When first released, this document was named Autoprotect.doc.

You can find Protection.doc on the Microsoft Web site at the following address:

http://officeupdate.microsoft.com/downloadCatalog/dldWord.htm

MORE INFORMATION
After the Normal project is locked, a password must be supplied before changes can be made to the project. You cannot view, edit, or add macros while the project is locked. This will prevent a macro included in a document or template from modifying the Normal template without the user furnishing a password.

When any attempt to change the project is made, the user will be prompted for the password. If the password is supplied, the project will be unlocked until Word is restarted. To ensure that protection is reset, after a password is used, restart Windows. This ensures that a WordMail stub is not running in the background and preventing Word from shutting down completely.

If you select the document in Explorer (or in My Computer) by single-clicking on it, then choose Print from the File menu, you will be prompted for a password.

Or if you right-click the document in Explorer or in My Computer and choose Print from the pop out menu, you will be prompted for a password.

But if you double-click on the document in Explorer or My Computer, Word will first start and will not prompt for a password. Then you can issue a print command and you still will not be prompted for a password.

To Use Protection.doc
 Quit Word if it is running.  Start your Internet browser and connect to the following Address: http://officeupdate.microsoft.com/downloadCatalog/dldWord.htm   Click to select the "Virus Protection for Normal.dot for Word 97" check box. NOTE: For more information, double-click "Virus Protection for Normal.dot for Word 97." At the end of the description, click More Info. When finished, click Return to Downloads or click the Back button in your Web browser.  On the Word Downloads page, click Go to Basket. On the Shopping Basket page, click the "Virus Protection for

Normal.dot for Word 97" hyperlink. If you are presented with the following message This document contains macros. Some macros may contain harmful viruses.

If you are sure this document is from a trusted source, click Yes. If you are not sure and want to prevent any macros from running, click No.

click "Yes" to allow Microsoft to set macro protection on your Normal template.

A new document will be displayed, titled "Microsoft Protection for Normal.dot." Read the "END-USER LICENSE AGREEMENT FOR MICROSOFT SOFTWARE" section before proceeding.

If you accept the terms, click the "Accept" button. If you do not accept the terms, click the "Do Not Accept" button. In the AutoProtection dialog box that is displayed, type a password in the "Enter new password" box. Press TAB, retype your password in the Confirm Password box, and click OK. The AutoProtection Installed dialog box appears.

Click Restart Windows. After your system is restarted, your Normal template in Word will be protected against any unwanted macro changes. To Manually Set the Protection

This level of protection may also be accomplished by setting the properties of the normal project in the Visual Basic for Applications Editor. To do this, use the following steps:


 * 1) Start Word if it is not currently running.
 * 2) On the Tools menu, point to Macros and then click "Visual Basic Editor".
 * 3) Click the Normal project in the project window to select it.
 * 4) On the Tools menu, click Project Properties.
 * 5) In the "Project--Project Properties" dialog box, click the Protection tab.
 * 6) Click to select the "Lock project for viewing" check box.
 * 7) Press TAB and then type a password in the Password box.
 * 8) Press TAB again, and then retype your password in the Confirm Password box. Click OK.
 * 9) On the File menu, click "Close and Return to Microsoft Word".
 * 10) Quit Word and Windows and restart your system.

NOTE: Macro protection will not be active until you restart your system.

Other Protection
This level of protection does not eliminate the need for the general "Macro Virus Protection" offered by Word. Microsoft recommends that both features be used to protect Word against macro viruses. To set the general "Macro Virus Protection" feature in Word:


 * 1) On the Tools menu, click Options.
 * 2) Click the General tab.
 * 3) Click to select the "Macro Virus Protection" check box.
 * 4) Click OK.

NOTE: This option warns you when you open a document or template that contains macros.

To Permanently Remove the Lock Protection From Your Normal Template
 Start Word if it is not running. On the Tools menu, point to Macros and then click Visual Basic Editor.</li> Click the Normal project in the project window to select it.</li> On the Tools menu, click Normal Properties.</li> Enter your password and click OK.</li> In the "Project - Project Properties" dialog box, click the Protection tab.</li> Click to clear the "Lock project for viewing" check box.</li> Click OK.</li> On the File menu, click "Close and Return to Microsoft Word."</li>  Press and hold SHIFT and click the File menu. Click Save All. NOTE: If you receive a message asking if you want to save changes to your global template, click Yes. </li></ol>

For additional information on macro viruses, please see the following article in the Microsoft Knowledge Base: ARTICLE-ID: Q163932 TITLE    : WD97: Frequently Asked Questions About Word Macro Viruses

Keywords         : kbusage kbtemplate word97 winword kbfaq Version          : 97 Platform         : WINDOWS winnt Issue type       : kbhowto
 * }

-

Last reviewed: December 17, 1998

© 1998 Microsoft Corporation. All rights reserved. Terms of Use.