Hi;
I am a 'try it til it works' VBA user, with an unfortunately sketchy idea of what's really going on. I have a table with data validation to ensure only appropriate entries are made. However, anyone may simply type an entry that is spelled the same but does not have the proper case, thus my attempt as follows:
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Cells.Count > 1 Or IsEmpty(Target) Then Exit Sub
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
End Sub
The code works fine outside of the cells with data validation applied, but crashes with feeling in the data validation cells. Please help?
Bookmarks