Option Explicit
Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Target, [COLOR=red]Range("A1:A10")[/COLOR]) Is Nothing Then Exit Sub
On Error GoTo Son
Application.EnableEvents = False
If Len(Target.Text) <> 3 Then
MsgBox "Bu hücreye sadece 3 karakter uzunluğunda veri girişi yapabilirsiniz !" & _
Chr(10) & Chr(10) & "İşleminiz iptal edilmiştir !", vbCritical, "Dikkat !"
Target = ""
Target.Activate
End If
Son: Application.EnableEvents = True
End Sub