Sub worksheet_open() 'Goto named Sheet
On Error GoTo Canceled
varUserInput = Application.InputBox _
(Prompt:="Insert Sheet name to open:", _
Title:="Select month", Default:="", Type:=2) 'Type 2 = String
If varUserInput = "False" Then Exit Sub
If varUserInput = "" Then
MsgBox "You have not entered a selection"
Exit Sub
End If
Sheets(varUserInput).Select
Exit Sub
Canceled:
MsgBox "No Sheet by the name of " & varUserInput
End Sub
Sub worksheet_open() 'Goto named Sheet
On Error GoTo Canceled
varUserInput = Application.InputBox _
(Prompt:="Insert Sheet name to open:", _
Title:="Select month", Default:="", Type:=2) 'Type 2 = String
If varUserInput = "False" Then Exit Sub
If varUserInput = "" Then
MsgBox "You have not entered a selection"
Exit Sub
End If
Sheets(varUserInput).Select
Exit Sub
Canceled:
MsgBox "No Sheet by the name of " & varUserInput
End Sub