XL: No Macro Virus Warning Appears Opening Protected Workbook

Last reviewed: February 5, 1998
Article ID: Q176640
The information in this article applies to:
  • Microsoft Excel 97 for Windows
  • Microsoft Excel 98 Macintosh Edition

SYMPTOMS

When you select the Macro Virus Protection check box in the General tab in the Options dialog box, and then open a workbook that contains Visual Basic for Applications code, you may not receive a warning message that indicates the workbook contains macros.

CAUSE

This problem occurs if the workbook requires you to enter a password to open it. Microsoft Excel does not scan for macros when you open workbooks that are protected by this kind of password. It is assumed that these workbooks have been created by trusted sources; therefore the workbooks are not scanned for macros or macro viruses.

WORKAROUND

To work around this behavior, remove the password that is required to open the workbook by following these steps:

  1. On the File menu, click Save As.

  2. In the Save As dialog box, click Options.

  3. In the Password To Open box, delete the password. Then, click OK.

  4. Click Save to save the workbook.

STATUS

This behavior is by design of the versions of Microsoft Excel listed at the beginning of this article.

MORE INFORMATION

To apply a password that is required to open a workbook, follow these steps:

  1. On the File menu, click Save As.

  2. In the Save As dialog box, click Options.

  3. In the Password To Open box, enter a password. Then, click OK.

  4. Reenter the same password, and then click OK again.

  5. Click Save to save the workbook.

The Macro Virus Protection feature in Microsoft Excel is designed to warn you when the workbook you are opening contains macro code. When you receive the warning, you can enable or disable the code. You can then use the Microsoft Excel Virus Search Add-In to scan for and eliminate macro viruses that may be in the workbook.

To make macro virus protection available, follow these steps:

  1. On the Tools menu, click Options or Preferences. Click the General tab.

  2. Click to select the Macro Virus Protection check box, and then click OK.

For more information about macro virus protection, please see the following articles in the Microsoft Knowledge Base:

   ARTICLE-ID: Q171093
   TITLE     : XL97: Macro Virus Protection Alert May Not Appear

   ARTICLE-ID: Q171661
   TITLE     : XL97: Macro Virus Warning Appears Opening File Without
               Macros


Additional query words: XL97
Keywords : xlloadsave
Version : WINDOWS:97; MACINTOSH:98
Platform : MACINTOSH WINDOWS
Issue type : kbprb
Solution Type : kbworkaround


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: February 5, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.