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:
- On the Tools menu, point to Macro, and then click Security.
- 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:
- 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.
- Quit Excel.
- 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.