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 Intersect(Target, Range("K1")) Is Nothing Then Exit Sub
Range("C2:H" & Cells(Rows.Count, 1).End(3).Row).ClearContents
Set S1 = Sheets("GİRİŞ")
Set BUL = S1.Range("F:F").Find(Target, , , xlWhole)
If Not BUL Is Nothing Then
Adres = BUL.Address
Do
Set X = Columns(2).Find(BUL.Offset(0, -2), , , xlWhole)
Set Y = Rows(1).Find(BUL.Offset(0, -1), , , xlWhole)
If Not X Is Nothing And Not Y Is Nothing Then
If Cells(X.Row, Y.Column) = "" Then
Cells(X.Row, Y.Column) = BUL.Offset(0, -4)
Else
Cells(X.Row, Y.Column) = Cells(X.Row, Y.Column) & "," & BUL.Offset(0, -4)
End If
Cells(38, Y.Column) = Cells(38, Y.Column) + 1
End If
Set BUL = S1.Range("F:F").Find(BUL.Value, BUL)
Loop While Not BUL Is Nothing And BUL.Address <> Adres
End If
End Sub
Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Target, Range("K1")) Is Nothing Then Exit Sub
Range("C2:H" & Cells(Rows.Count, 2).End(3).Row).ClearContents
Set S1 = Sheets("GİRİŞ")
Set BUL = S1.Range("F:F").Find(Target, , , xlWhole)
If Not BUL Is Nothing Then
Adres = BUL.Address
Do
Set X = Columns(2).Find(BUL.Offset(0, -2), , , xlWhole)
Set Y = Rows(1).Find(BUL.Offset(0, -1), , , xlWhole)
If Not X Is Nothing And Not Y Is Nothing Then
If Cells(X.Row, Y.Column) = "" Then
Cells(X.Row, Y.Column) = BUL.Offset(0, -4)
Else
Cells(X.Row, Y.Column) = Cells(X.Row, Y.Column) & "," & BUL.Offset(0, -4)
End If
Cells(38, Y.Column) = Cells(38, Y.Column) + 1
Cells(38, "H") = Cells(38, "H") + 1
Cells(X.Row, "H") = Cells(X.Row, "H") + 1
End If
Set BUL = S1.Range("F:F").Find(BUL.Value, BUL)
Loop While Not BUL Is Nothing And BUL.Address <> Adres
End If
End Sub