I don't know why, but the ISTEXT function doesn't work at all. No matter what I put in, with the exception of numbers only, it accepts the data and registers True.
The VBA macro works fine. I had to modify it a little to restrict it to 2-3 letters as shown.
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Column = 1 Then
If Len(Target) = 1 Then
MsgBox "Min. 2 letters"
ElseIf Len(Target) > 3 Then
MsgBox "Max. 3 letters"
Target.ClearContents
Else
Target.Formula = UCase(Target.Formula)
Exit Sub
End If
End If
End Sub
Bookmarks