I'm still betting that you're typing lower case letters in that cell and that
breaks the code (which looks for upper case).
But since what you type into the cell is the name of the sheet, you can use
different code that does a little less work.
Option Explicit
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Cells.Count > 1 Then
Exit Sub
End If
If Intersect(Target, Me.Range("GRADE")) Is Nothing Then
Exit Sub
End If
On Error Resume Next
Worksheets(CStr(Target.Value)).Select
If Err.Number <> 0 Then
Err.Clear
MsgBox "No visible sheet by that name!"
End If
On Error GoTo 0
End Sub
If it doesn't work, you're going to have to describe what happens when you try
it. And give some details when the code does work.
(My bet is that you're not typing the exact name of the worksheet.)
Thanks Dave, here is the code, there are some GRADE values that don't have
letters, and still dont work
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = Range("GRADE").Address Then
Select Case Target.Value
Case Is = "69026S"
Sheets("69026S").Activate
Case Is = "61042"
Sheets("61042").Activate
Case Is = "61035"
Sheets("61035").Activate
Case Is = "61033"
Sheets("61033").Activate
Case Is = "61026H"
Sheets("61026H").Activate
End Select
End If
End Sub
Thanks again