Sub mat() If Range("H5").Value = 1 Then ActiveSheet.Unprotect Range("F13").Select Selection.ClearContents ActiveCell.

FormulaR1C1 = "Not Applicable" Selection.Locked = True Range("F10").Select Selection.ClearContents Selection.Locked = False ActiveSheet.Protect ElseIf Range("H5").Value = 2 Then ActiveSheet.Unprotect Range("F10").Select Selection.ClearContents ActiveCell.FormulaR1C1 = "Not Applicable" Selection.Locked = True Range("F13").Select Selection.ClearContents Selection.Locked = False ActiveSheet.Protect End If End Sub