Have a code to select a sheet. If the sheet dont exist I want a message box telling the sheet dont exist. Otherwise want to select the sheet.
Sub Open_TB3()
Dim entity As String
Entity = InputBox("Select entity")
if error Sheets(entity).Select
then messagebox (The entity does not exist)
Else: Sheets(entity).Select
End Sub
Sub Open_TB3()
Dim entity As String
Entity = InputBox("Select entity")
if error Sheets(entity).Select
then messagebox (The entity does not exist)
Else: Sheets(entity).Select
End Sub