DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Target, Range("W2:W" & Rows.Count)) Is Nothing Then
Application.EnableEvents = False
Dim dict
Set dict = CreateObject("Scripting.Dictionary")
Dizim = Split(Target.Value)
For i = LBound(Dizim) To UBound(Dizim)
If Not dict.Exists(Dizim(i)) Then
dict.Add Dizim(i), 0
End If
Next i
Target.Offset(, 1) = Join(dict.keys, " ")
' Eğer farklı bir sütuna yazmak istiyorsanız üstteki satırda değişiklik yapmanız yetecektir.
Application.EnableEvents = True
End If
End Sub
Sub Duzenle()
Dim i As Long
Dim j As Integer
Dim arr As Variant
Dim col As Integer
Dim t As Variant
col = Cells(1, Columns.Count).End(1).Column + 1
Application.ScreenUpdating = False
For i = 2 To Cells(Rows.Count, "W").End(3).Row
arr = Split(Cells(i, "W"), " ")
Cells(1, col).Resize(UBound(arr) + 1, 1) = Application.WorksheetFunction.Transpose(arr)
j = Cells(Rows.Count, col).End(3).Row
Range(Cells(1, col), Cells(j, col)).RemoveDuplicates Columns:=1, Header:=xlNo
j = Cells(Rows.Count, col).End(3).Row
Range(Cells(1, col), Cells(j, col)).Sort Key1:=Cells(1, col)
t = Application.Transpose(Range(Cells(1, col), Cells(j, col)))
Cells(i, "W") = Join(t, " ")
Next i
Columns(col).ClearContents
Application.ScreenUpdating = True
MsgBox "İşlem Tamamdır...."
End Sub