Why doesn't this work/trigger?
Code:
Private Sub Workbook_SheetChange(ByVal Sh As Object, _
ByVal Source As Range)
Application.EnableEvents = True
Application.ScreenUpdating = False
If Target.Address <> "$A$1" Then Exit Sub
Application.Columns("D:BP").Select
Application.Selection.EntireColumn.Hidden = False
If Target.Value = "1" Then
Application.Columns("D:J").Select
Application.Selection.EntireColumn.Hidden = True
End If
If Target.Value = "2" Then
Application.Columns("D:AM").Select
Application.Selection.EntireColumn.Hidden = True
End If
If Target.Value = "3" Then
Application.Columns("D:Q").Select
Application.Selection.EntireColumn.Hidden = True
End If
If Target.Value = "4" Then
Application.Columns("D:X").Select
Application.Selection.EntireColumn.Hidden = True
End If
If Target.Value = "5" Then
Application.Columns("D:BP").Select
Application.Selection.EntireColumn.Hidden = False
End If
If Target.Value = "6" Then
Application.Columns("D:AE").Select
Application.Selection.EntireColumn.Hidden = True
End If
If Target.Value = "7" Then
Application.Columns("D:AS").Select
Application.Selection.EntireColumn.Hidden = True
End If
If Target.Value = "8" Then
Application.Columns("D:BA").Select
Application.Selection.EntireColumn.Hidden = True
End If
If Target.Value = "9" Then
Application.Columns("D:BH").Select
Application.Selection.EntireColumn.Hidden = True
End If
End If
'Application.EnableEvents = True
Application.ScreenUpdating = True
End Sub