Scroll office ignore |
---|
Multiexcerpt include |
---|
nopanel | true |
---|
MultiExcerptName | Version 6.0 |
---|
PageWithExcerpt | LIB60:Template Page Includes |
---|
|
|
Show If |
---|
|
The content on this page is hidden so that anonymous users don't see it if the page is returned in a search. Anonymous users are redirected to the Enabling Macros in Excel. |
Hide If |
---|
|
Redirect |
---|
delay | 2 |
---|
location | http://sbdocs.psur.cornell.edu/display/OB60/Enabling+Macros+in+Excel |
---|
|
|
...
Background
Macros can add a wide variety of custom behavior to Microsoft Excel workbooks, but they also pose a potential security risk. Consequently, each version of Excel has provided ways for users to enable or disable macros by setting the desired level of macro security from Very High to Low; the initial “default” setting provides a relatively high level of protection.
We have provided several custom operations in the Option B Excel eForms for your convenience. These function all require that macros be enabled. Before you can enable macros, you must set the appropriate macro security level.
The process for enabling macros depends upon the version of Excel and whether the workbook has been digitally signed.
Scroll office ignore |
---|
Expand |
---|
title | Excel 2000 - 2003... |
---|
| Expand |
---|
title | To change the macro security level... |
---|
| Excel 2000 through Excel 2003 have four macro security levels.
- Start Excel.
- On the Tools menu, point to Macro and click Security.
- In the Security dialog box, click the Security Level tab.
- Select the desired macro security setting and then click OK. (Use either Medium or High for Option B.)
- Close Excel. (The security-level changes will not take effect until Excel is restarted).
|
Expand |
---|
title | To enable macros in the Option B workbooks... |
---|
| With macro security set to either High or Medium: Start the Option B program (first usage, see this note).
Choose the type of form and open a Blank Form or reopen a previously saved Existing Form.
- When Excel 2000 - 2003 starts, you will be presented with a Security Warning dialog box. It should indicate that the workbook contains macros by Cornell University.
|
|
Expand |
---|
| Expand |
---|
title | To change the macro security level... |
---|
| Beginning with Excel 2007, there are still four security levels but their meanings are subtly different from those in Excel 2003 and earlier. - Start Excel.
- Click the Office Button (the Windows™ logo in the upper left corner).
- Select the Excel Options button.
- In the left pane of the Excel Options dialog, select Trust Center.
- Click the Trust Center Settings button in the right pane.
- In the left pane of the Trust Center dialog, select Macro Settings.
- In the right pane, select the desired macro security setting. (Use either of the middle two settings; it does not matter for Option B.)
- Click OK to close the Trust Center; click OK to close Excel Options.
|
Expand |
---|
title | To enable macros in the Option B workbooks... |
---|
| Start the Option B program (first usage, see this note).
Choose the type of form and open a Blank Form or reopen a previously saved Existing Form.
- If you have not previously selected “Trust all documents from this publisher” with an Option B file, the workbook will open with macros disabled and a Security Warning bar between the Ribbon and the spreadsheet.
- Click the Options… button on the Security Warning bar.
- The Microsoft Office Security Options dialog appears showing information about the digital signature for this form. The digital signature should be valid, but may have expired; the macros should be signed by Cornell University. You have two options:
- Recommended: Select “Trust all documents from this publisher”. (Not available if the signature has expired.) From now on, all Option B workbooks should open with macros enabled.
- Select “Enable this content”. You will need to enable macros the same way every time you open an Option B workbook.
- Select OK to close the Security Options dialog.
|
|
Expand |
---|
title | Excel 2010 and 2013... |
---|
| Expand |
---|
title | To change the macro security level... |
---|
| Beginning with Excel 2007, there are still four security levels but their meanings are subtly different from those in Excel 2003 and earlier. - Start Excel.
- Open the File menu9.
- Select the Options button.
- In the left pane of the Excel Options dialog, select Trust Center.
- Click the Trust Center Settings button in the right pane.
- In the left pane of the Trust Center dialog, select Macro Settings.
- In the right pane, select the desired macro security setting. (Use either of the middle two settings; it does not matter for Option B.)
- Click OK to close the Trust Center; click OK to close Excel Options.
|
Expand |
---|
title | To enable macros in the Option B workbooks... |
---|
| Start the Option B program (first usage, see this note).
Choose the type of form and open a Blank Form or reopen a previously saved Existing Form.
- If you have not previously selected “Trust all documents from this publisher” with an Option B file, the workbook will open with macros disabled and a Security Warning bar between the Ribbon and the spreadsheet.
- Do Not select the Enable Content button in the Security Warning bar; that will enable macros only for this document. Instead, click the “Macros have been disabled” text to the left of the button (or open Info from the File menu).
- In the Security Warning section of the Info screen, click the Enable Content drop-down button and choose Advanced Options.
- The Microsoft Office Security Options dialog appears showing information about the digital signature for this form. The digital signature should be valid, but may have expired; the macros should be signed by Cornell University. You have two options:
- Recommended: Select “Trust all documents from this publisher”. (Not available if the signature has expired.) From now on, all Option B workbooks should open with macros enabled.
- Select “Enable content for this session”. You will need to enable macros the same way every time you open an Option B workbook.
- Select OK to close the Security Options dialog.
|
|
|
Scroll office only |
---|
Excel 2000 - 2003To change the macro security levelExcel 2000 through Excel 2003 have four macro security levels. - Start Excel.
- On the Tools menu, point to Macro and click Security.
- In the Security dialog box, click the Security Level tab.
- Select the desired macro security setting and then click OK. (Use either Medium or High for Option B.)
- Close Excel. (The security-level changes will not take effect until Excel is restarted).
To enable macros in the Option B workbooksWith macro security set to either High or Medium: Start the Option B program (first usage, see this note).
Choose the type of form and open a Blank Form or reopen a previously saved Existing Form.
- When Excel 2000 - 2003 starts, you will be presented with a Security Warning dialog box. It should indicate that the workbook contains macros by Cornell University.
Excel 2007To change the macro security levelBeginning with Excel 2007, there are still four security levels but their meanings are subtly different from those in Excel 2003 and earlier. - Start Excel.
- Click the Office Button (the Windows™ logo in the upper left corner).
- Select the Excel Options button.
- In the left pane of the Excel Options dialog, select Trust Center.
- Click the Trust Center Settings button in the right pane.
- In the left pane of the Trust Center dialog, select Macro Settings.
- In the right pane, select the desired macro security setting. (Use either of the middle two settings; it does not matter for Option B.)
- Click OK to close the Trust Center; click OK to close Excel Options.
To enable macros in the Option B workbooksStart the Option B program (first usage, see this note).
Choose the type of form and open a Blank Form or reopen a previously saved Existing Form.
- If you have not previously selected “Trust all documents from this publisher” with an Option B file, the workbook will open with macros disabled and a Security Warning bar between the Ribbon and the spreadsheet.
- Click the Options… button on the Security Warning bar.
- The Microsoft Office Security Options dialog appears showing information about the digital signature for this form. The digital signature should be valid, but may have expired; the macros should be signed by Cornell University. You have two options:
- Recommended: Select “Trust all documents from this publisher”. (Not available if the signature has expired.) From now on, all Option B workbooks should open with macros enabled.
- Select “Enable this content”. You will need to enable macros the same way every time you open an Option B workbook.
- Select OK to close the Security Options dialog.
Excel 2010 - 2013To change the macro security levelBeginning with Excel 2007, there are still four security levels but their meanings are subtly different from those in Excel 2003 and earlier. - Start Excel.
- Open the File menu9.
- Select the Options button.
- In the left pane of the Excel Options dialog, select Trust Center.
- Click the Trust Center Settings button in the right pane.
- In the left pane of the Trust Center dialog, select Macro Settings.
- In the right pane, select the desired macro security setting. (Use either of the middle two settings; it does not matter for Option B.)
- Click OK to close the Trust Center; click OK to close Excel Options.
To enable macros in the Option B workbooksStart the Option B program (first usage, see this note).
Choose the type of form and open a Blank Form or reopen a previously saved Existing Form.
- If you have not previously selected “Trust all documents from this publisher” with an Option B file, the workbook will open with macros disabled and a Security Warning bar between the Ribbon and the spreadsheet.
- Do Not select the Enable Content button in the Security Warning bar; that will enable macros only for this document. Instead, click the “Macros have been disabled” text to the left of the button (or open Info from the File menu).
- In the Security Warning section of the Info screen, click the Enable Content drop-down button and choose Advanced Options.
- The Microsoft Office Security Options dialog appears showing information about the digital signature for this form. The digital signature should be valid, but may have expired; the macros should be signed by Cornell University. You have two options:
- Recommended: Select “Trust all documents from this publisher”. (Not available if the signature has expired.) From now on, all Option B workbooks should open with macros enabled.
- Select “Enable content for this session”. You will need to enable macros the same way every time you open an Option B workbook.
- Select OK to close the Security Options dialog.
|
Warning |
---|
title | Important Note for Excel 2010 |
---|
|
When an Option B workbook is opened, a macro runs that reads some identity information from the Registration form and hides the red “Macros are disabled” warning in the header area of the spreadsheet. In Excel 2010 only (not in other versions of Excel), this macro runs only if Excel is already running when you open the workbook. Therefore for Excel 2010, we strongly recommend that you start Excel 2010 before opening an Option B workbook. |