Why doesn't the VBA below work? If range Z1 = "NO", nothing happens. Thanks!
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
If Range("Z1") = "NO" Then
'strikethrough
Range("A1:Q14").Select
With Selection.Font
.Strikethrough = True
End With
Range("G15:K21").Select
With Selection.Font
.Strikethrough = True
End With
Range("A24:Q30").Select
With Selection.Font
.Strikethrough = True
End With
End If
If Range("Z1") = "YES" Then
Range("A1:Q14").Select
With Selection.Font
.Strikethrough = False
End With
Range("G15:K21").Select
With Selection.Font
.Strikethrough = False
End With
Range("A24:Q30").Select
With Selection.Font
.Strikethrough = False
End With
End If
End Sub