Selamlar, dosyamda açıklamaya çalıştım, yardımlarınızı bekliyorum..
http://s3.dosya.tc/server6/f5s4es/Gruba_gore_malzemeleri_getirmek.xls.html
http://s3.dosya.tc/server6/f5s4es/Gruba_gore_malzemeleri_getirmek.xls.html
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, [B1]) Is Nothing Then Exit Sub
Application.EnableEvents = False
Set s2 = Sheets("Malzemeler")
son = s2.Cells(Rows.Count, "B").End(3).Row
If WorksheetFunction.CountIf(s2.Range("B2:B" & son), Target) = 0 Then Exit Sub
eski = Cells(Rows.Count, "B").End(3).Row
Range("A2:B" & eski).ClearContents
For i = 2 To son
If s2.Cells(i, "B") = Target Then
yeni = Cells(Rows.Count, "B").End(3).Row + 1
Cells(yeni, "A") = yeni - 1
Cells(yeni, "B") = s2.Cells(i, "C")
End If
Next
Application.EnableEvents = True
Target.Select
End Sub
Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Target, [B1]) Is Nothing Then Exit Sub
Application.EnableEvents = False
Set s2 = Sheets("Malzemeler")
son = s2.Cells(Rows.Count, "B").End(3).Row
If WorksheetFunction.CountIf(s2.Range("B2:B" & son), Target) = 0 Then Exit Sub
eski = WorksheetFunction.Max(2, Cells(Rows.Count, "B").End(3).Row, 2)
Range("A2:B" & eski).ClearContents
For i = 2 To son
If UCase(Replace(Replace(s2.Cells(i, "B"), "i", "İ"), "ı", "I")) = UCase(Replace(Replace(Target, "i", "İ"), "ı", "I")) Then
yeni = Cells(Rows.Count, "B").End(3).Row + 1
Cells(yeni, "A") = yeni - 1
Cells(yeni, "B") = s2.Cells(i, "C")
End If
Next
Application.EnableEvents = True
Target.Select
End Sub
sub aktif()
Application.EnableEvents = true
end sub()
Formülle nasıl yapılır bilmiyorum. Olmayan dosyayı dosya paylaşır mısınız?
Sub aktif()
Application.EnableEvents = False
Application.EnableEvents = True
End Sub
Helal olsun, ne demek.
Eğer işinizi gördüyse ne iyi, görmediyse sormaktan çekinmeyin.