When the macro security level in Excel is set to Low (not recommended), macros can be run without prompting. When macro security is set to Medium, Excel displays a dialog box asking if you want to enable macros. When macro security is set to High (the recommended macro security setting for all users), Excel allows you to run only those macros that are digitally signed
MS OFFICE 2003
To allow unsigned macros to run, the Trust all installed add-ins and templatescheck box must be selected on the Trusted Publishers tab of the Security dialog box. This option is selected by default. If it is not selected (recommended), Excel allows you to run only macros that have trusted digital signatures.
- On the Tools menu, point to Macro, and then click Security.
- On the Trusted Publishers tab, select the Trust all installed add-ins and templates check box.
MICROSOFT OFFICE EXCEL 2007 AND 2010
- Click the Microsoft Office Button , and then click Excel Options.
- Click Trust Center, click Trust Center Settings, and then click Macro Settings.
- Click the options that you want:
- Disable all macros without notification Click this option if you don't trust macros. All macros in documents and security alerts about macros are disabled. If there are documents with unsigned macros that you do trust, you can put those documents into a trusted location. Documents in trusted locations are allowed to run without being checked by the Trust Center security system.
- Disable all macros with notification This is the default setting. Click this option if you want macros to be disabled, but you want to get security alerts if there are macros present. This way, you can choose when to enable those macros on a case by case basis.
- Disable all macros except digitally signed macros This setting is the same as the Disable all macros with notification option, except that if the macro is digitally signed by a trusted publisher, the macro can run if you have already trusted the publisher. If you have not trusted the publisher, you are notified. That way, you can choose to enable those signed macros or trust the publisher. All unsigned macros are disabled without notification.
- Enable all macros (not recommended, potentially dangerous code can run) Click this option to allow all macros to run. This setting makes your computer vulnerable to potentially malicious code and is not recommended.
- Trust access to the VBA project object model This setting is for developers and is used to deliberately lock out or allow programmatic access to the VBA object model from any Automation client. In other words, it provides a security option for code that is written to automate an Office program and programmatically manipulate the Microsoft Visual Basic for Applications (VBA) environment and object model. This is a per user and per application setting, and denies access by default. This security option makes it more difficult for unauthorized programs to build "self-replicating" code that can harm end-user systems. For any Automation client to be able to access the VBA object model programmatically, the user running the code must explicitly grant access. To turn on access, select the check box.