DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Sub test()
Dim i As Byte, d As String, s As Byte, j As Integer, sat As Long, c As Range, sut As Integer
Application.ScreenUpdating = False
Range("K4:K10").ClearContents
For i = 4 To 10
If Cells(i, "J") <> "" Then
d = "": s = 0
Set c = [A:G].Find(Cells(i, "J"), , xlValues, xlWhole)
If Not c Is Nothing Then
sut = c.Column
If sut > 1 Then
For j = 1 To sut
If j = sut Then s = 1
sat = Cells(c.Row + s, j).End(xlUp).Row
d = d & " / " & Cells(sat, j + 1)
Next j
Cells(i, "K") = WorksheetFunction.Substitute(d, " / ", "", 1)
Else
Cells(i, "K") = Cells(c.Row, sut + 1)
End If
End If
End If
Next i
Range("K4:K10").WrapText = False
Application.ScreenUpdating = True
End Sub
Function agac_liste_olustur(alan As Range, hcr As Range)
Dim d As String, s As Byte, j As Integer, sat As Long, c As Range, sut As Integer
Application.Volatile True
If hcr = "" Then agac_liste_olustur = "": Exit Function
d = "": s = 0
Set c = [alan].Find(hcr, , xlValues, xlWhole)
If Not c Is Nothing Then
sut = c.Column
If sut > 1 Then
For j = 1 To sut
If j = sut Then s = 1
sat = Cells(c.Row + s, j).End(xlUp).Row
d = d & " / " & Cells(sat, j + 1)
Next j
agac_liste_olustur = WorksheetFunction.Substitute(d, " / ", "", 1)
Else
agac_liste_olustur = Cells(c.Row, sut + 1)
End If
End If
End Function
Function agac_liste_olustur(alan As Range, hcr As Range)
Dim d As String, s As Byte, j As Integer, sat As Long, c As Range, sut As Integer, S1 As Worksheet
Set S1 = Sheets("Ürün Ağacı")
Application.Volatile True
If hcr = "" Then agac_liste_olustur = "": Exit Function
d = "": s = 0
Set c = [alan].Find(hcr, , xlValues, xlWhole)
If Not c Is Nothing Then
sut = c.Column
If sut > 1 Then
For j = 1 To sut
If j = sut Then s = 1
sat = S1.Cells(c.Row + s, j).End(xlUp).Row
d = d & " / " & S1.Cells(sat, j + 1)
Next j
agac_liste_olustur = WorksheetFunction.Substitute(d, " / ", "", 1)
Else
agac_liste_olustur = S1.Cells(c.Row, sut + 1)
End If
End If
End Function