Macro Security in Excel
The
following figure shows the Macro Settings section
of the Trust Center dialog box. Choose Developer ➪ Code ➪ Macro Security, to display
the Trust Center dialog box.
The
Macro Settings section of the Trust Center dialog box.
By
default, Excel uses the Disable All Macros with Notification option.
When this setting is selected, if you open a workbook that contains macros , the macros will be disabled, and Excel
will display a Security Warning above the
Formula bar.
Excel
displays a Security Warning if a workbook contains macros.
If
you are sure that the workbook comes from a trusted source, click the Enable Content button in the security warning
area. The macros, in the workbook, will be enabled. Excel will remember your
decision. After enabling the macros, the next time you open that file, you will
not see the Security Warning.
Note: If the Visual Basic (VB) Editor window is open when you open
a workbook that contains VBA macros, Excel does not display the Security Warning above the Formula bar. Instead,
it displays a dialog box with two buttons: Enable Macros and Disable Macros.
You
may prefer to designate one or more folders as “trusted locations”, rather than
deal with individual workbooks. All the workbooks in a trusted location are
opened without a macro warning. You can designate trusted folders in the Trusted Locations section of the Trust Center dialog box, shown in the following
figure.



0 Comments