Try this:
Option Explicit
Private Sub Worksheet_Change(ByVal Target As Range)
Dim rInterest As Range
Set rInterest = Me.Range("A2:A20") ' modify to suit
If Intersect(Target, rInterest) Is Nothing Then Exit Sub
If Target.Cells.Count > 1 Or IsEmpty(Target) Then Exit Sub
Application.EnableEvents = False
If LCase(Target.Value) = "not in class" _
Or LCase(Target.Value) = "not rated" _
Or LCase(Target.Value) = "did not submit" _
Then
Target.Value = Application.Proper(Target.Value)
Else
Target.Value = UCase(Target.Value)
End If
Application.EnableEvents = True
End Sub
Regards, TMS
Bookmarks