Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

XL2000: Workbooks in the Startup Folder Are Not Scanned for Macros


View products that this article applies to.

This article was previously published under Q214329

↑ Back to the top


Symptoms

When you start Microsoft Excel 2000, workbooks are not scanned for macros when they are opened.

↑ Back to the top


Cause

You have not installed an antivirus software program.

↑ Back to the top


Resolution

Microsoft Excel does not scan your floppy disk, hard disk, or network drive to find and remove viruses. If you want this type of protection, you must purchase and install an antivirus software program. However, you can configure Excel to display a warning message whenever you open a workbook that contains macros.

To display a warning message whenever you open a workbook that contains a macro, follow these steps:
  1. On the Tools menu, point to Macro, and then click Security.
  2. Click the Security tab, click Medium, and then click OK.

    NOTE: Clicking High disables any unsigned macros.
If you have reason to believe that one or more workbooks on your computer have been infected by macro viruses, follow these steps:
  1. Start Microsoft Excel. On the Tools menu, click Options, click the General tab, and then note the file location in the Alternate startup file location box.
  2. Quit Excel.
  3. Using Microsoft Windows Explorer, remove all files from the Xlstart folder and the alternate startup file folder.

    NOTE: You can either delete the files or you can move them to a different folder.
After you have performed these steps, you may want to install an antivirus software program to scan for and remove any viruses.

NOTE: Even if a macro contains a virus, if the macro has not been run, it cannot spread the virus.

↑ Back to the top


More information

To demonstrate the virus warning message, follow these steps:
  1. In Microsoft Excel, create a new workbook.
  2. On the Tools menu, point to Macro, click Security, click Medium, and then click OK.
  3. On the Tools menu, point to Macro, and then click Visual Basic Editor. Click Module on the Insert menu, and then type the following code in the new module:
    Sub Test()
        MsgBox "Not really a virus."
    End Sub
    					
  4. On the File menu, click Close and Return to Microsoft Excel.
  5. On the File menu, click Save As, name the workbook Test1, click Save, and then click Close.
  6. On the File menu, click Test1.

    You receive a message stating that macros may contain viruses, and you have the option to open the workbook with the macros enabled or disabled.

↑ Back to the top


References

For more information about macro viruses, click Microsoft Excel Help on the Help menu, type about viruses and workbook macros in the Office Assistant or the Answer Wizard, and then click Search to view the topic.

↑ Back to the top


Keywords: KB214329, kbprogramming, kbprb, kbcode

↑ Back to the top

Article Info
Article ID : 214329
Revision : 4
Created on : 9/27/2003
Published on : 9/27/2003
Exists online : False
Views : 241