DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Function bHarf(Veri As String)
bHarf = UCase(Replace(Replace(Veri, "i", "İ"), "ı", "I"))
End Function
Function AdSoyad(Veri As String)
Dim Ad As String, Soyad As String, i As Integer
Dim Dizi() As String
If Veri = "" Then Exit Function
Dizi = Split(Veri, " ")
If UBound(Dizi) > 0 Then
For i = 0 To UBound(Dizi) - 1
Ad = Trim(Ad & " " & Dizi(i))
Next i
Soyad = Dizi(UBound(Dizi))
Else
Ad = Veri
Soyad = ""
End If
Ad = Application.WorksheetFunction.Proper(Ad)
Soyad = UCase(Replace(Replace(Soyad, "i", "İ"), "ı", "I"))
AdSoyad = Ad & " " & Soyad
End Function
Private Sub Worksheet_Change(ByVal Target As Range)
Application.EnableEvents = False
With Target
If .Column = 4 Or .Column = 5 Then
.Value = AdSoyad(.Value)
ElseIf .Column = 3 Or .Column = 6 Then
.Value = bHarf(.Value)
End If
End With
Application.EnableEvents = True
End Sub
Option Compare Text
Private Sub Worksheet_Change(ByVal Target As Range)
Dim c As Range, Sa As Worksheet, ilkadres As Variant
Set Sa = Sheets("ALACAK")
Application.EnableEvents = False
With Target
If .Column = 3 Or .Column = 6 Then
.Value = bHarf(.Value)
ElseIf .Column = 4 Then
.Offset(0, 1).ClearContents
Set c = Sa.Range("B:B").Find(Target.Offset(0, -2), _
LookIn:=xlValues, LookAt:=xlWhole)
If Not c Is Nothing Then
ilkadres = c.Address
Do
If bHarf(Sa.Range("C" & c.Row)) = bHarf(.Offset(0, -1)) And _
bHarf(Sa.Range("D" & c.Row)) = bHarf(.Value) Then
.Offset(0, 1) = AdSoyad(Sa.Range("E" & c.Row))
.Value = AdSoyad(.Value)
End If
Set c = Sa.Range("B:B").FindNext(c)
Loop While Not c Is Nothing And c.Address <> ilkadres
End If
End If
End With
Application.EnableEvents = True
End Sub