Public F As String
Private Sub Worksheet_Activate()
Sheets(F).Visible = False
End Sub
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$B$1" Then
F = CStr(Target.Value)
Sheets(F).Visible = True
Application.Goto Reference:=Worksheets(F).Range("A1")
End If
End Sub