Understanding Macro Viruses


You've probably heard a lot of talk about viruses that your computer can catch from other computers on a network, the Internet, or disks. But what if your macros contain viruses? Viruses can contaminate your macros if the workbook is from an unsecure network or Internet site.

To prevent your computer from becoming contaminated with macro viruses, you can display a warning message whenever you try to open a workbook that contains a macro. This warning message always appears whether or not the macro actually has a virus. When the message displays, try to make sure that you know and trust the source of the workbook before you continue.

To check workbooks for macro viruses and display that warning message, choose Tools, Macro and then select Security. The Security dialog box opens, as shown in Figure 20.9. The Security Level tab should be up front. If it isn't, click the tab.

Figure 20.9. The Security Level tab in the Security dialog box.

graphics/20fig09.jpg

The High option lets you run signed macros from trusted sources. Unsigned macros are automatically disabled when you choose the High option. Choose the Medium option and click OK. Medium security displays the virus warning message. The Low option does not check workbooks for macros that might contain a virus. Therefore, the low security does not display the warning message. Now click OK.

When you open a workbook that contains macros and the security level is medium, Excel displays the warning message that's in Figure 20.10. If you click Disable Macros, Excel ignores the macros in the workbook. If you click Enable Macros, Excel lets you use the macros in the workbook.

Figure 20.10. The macro virus warning message.

graphics/20fig10.jpg



Sams Teach Yourself Microsoft Office Excel 2003 in 24 Hours
Sams Teach Yourself Microsoft Office Excel 2003 in 24 Hours (Sams Teach Yourself in 24 Hours)
ISBN: 1435276337
EAN: 2147483647
Year: 2003
Pages: 279
Authors: Trudi Reisner

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net