Private Sub Worksheet_Change(ByVal Target As Range)
Dim ws As Worksheet
If Target.Address = "$F$2" And Target.Value = 0 Then 'refers to Cell F2 on Sheet1
For i = ActiveWorkbook.Sheets.Count To 2 Step -1
Sheets(i).Visible = False
Next i
End If
End Sub