VirusProtection Property

Applies To

Options object.

Description

True if Word displays a built-in warning message whenever you open a document or template that might contain macro viruses. Read/write Boolean.

Remarks

Any document that contains macros or customized toolbars, menus, or shortcuts will automatically display this warning. You can then decide whether to open the document with or without its macros.

Example

This example sets Word to automatically display a warning message whenever you open a document that might contain macro viruses.

Options.VirusProtection = True
This example returns the current status of the Enable macro virus protection option on the General tab in the Options dialog box (Tools menu).

temp = Options.VirusProtection