0
0
Excelspreadsheet~10 mins

Macro security settings in Excel - Cell-by-Cell Formula Trace

Choose your learning style9 modes available
Sample Data

This table lists example macros and their assigned macro security settings in Excel.

CellValue
A1Macro Name
B1Security Level
A2AutoSave
B2Disable all macros without notification
A3DataImport
B3Disable all macros with notification
A4ReportGen
B4Disable all macros except digitally signed macros
A5Summary
B5Enable all macros (not recommended)
Formula Trace
=IF(B2="Enable all macros (not recommended)","Run",IF(B2="Disable all macros with notification","Ask",IF(B2="Disable all macros except digitally signed macros","Signed Only","Blocked")))
Step 1: B2="Enable all macros (not recommended)"
Step 2: B2="Disable all macros with notification"
Step 3: B2="Disable all macros except digitally signed macros"
Step 4: Result = "Blocked"
Cell Reference Map
     A               B
1  Macro Name    Security Level
2  AutoSave     -> Disable all macros without notification
3  DataImport     Disable all macros with notification
4  ReportGen      Disable all macros except digitally signed macros
5  Summary        Enable all macros (not recommended)
The formula in a cell references B2 to check the macro security setting for 'AutoSave'.
Result
     A               B                                       C
1  Macro Name    Security Level                        Status
2  AutoSave     Disable all macros without notification  Blocked
3  DataImport   Disable all macros with notification    
4  ReportGen   Disable all macros except digitally signed macros
5  Summary     Enable all macros (not recommended)       
The formula result 'Blocked' appears in column C for the AutoSave macro based on its security setting in B2.
Sheet Trace Quiz - 3 Questions
Test your understanding
What does the formula return if the security level is 'Enable all macros (not recommended)'?
ASigned Only
BAsk
CRun
DBlocked
Key Result
IF checks conditions in order and returns corresponding text; defaults to 'Blocked' if no match.