18.11.2014 Views

Microsoft Office

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Introducing Visual Basic for Applications 39<br />

FIGURE 39.2<br />

The Macro Settings section of the Trust Center dialog box.<br />

By default, Excel uses the Disable All Macros With Notification option. With this setting in effect, if you<br />

open a workbook that contains macros (and the file is not digitally “signed”), the macros will be disabled,<br />

and Excel displays a Security Warning above the Formula bar (see Figure 39.3). If you’re certain that the<br />

workbook comes from a trusted source, click Enable Content (and verify your decision in the subsequent<br />

dialog box), and the macros will be enabled.<br />

If the Visual Basic Editor window is open when you open a workbook that contains macros,<br />

Excel does not display the Security Warning above the Formula bar. Rather, it displays a dialog<br />

box with two buttons: Enable Macros and Disable Macros.<br />

NOTE<br />

FIGURE 39.3<br />

Excel displays a Security Warning if a workbook contains macros.<br />

Perhaps the best way to handle macro security is to designate one or more folders as “trusted locations.” All<br />

the workbooks in a trusted location are opened without a macro warning. You designate trusted folders in<br />

the Trusted Locations section of the Trust Center dialog box.<br />

683

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!