kemal turan
Altın Üye
- Katılım
- 10 Haziran 2011
- Mesajlar
- 1,677
- Excel Vers. ve Dili
- Excel 2010 32 bit
DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Intersect(Target, [a2:a65536]) Is Nothing Then Exit Sub
[b2:b65536].ClearContents
If Target = "" Then Exit Sub
For a = 2 To [sayfa2!a65536].End(3).Row
If Sheets("sayfa2").Cells(a, "a") = Target Then
c = c + 1
Cells(c + 1, "b") = Sheets("sayfa2").Cells(a, "b")
End If
Next
End Sub
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
c = 0
If Not Intersect(Target, [a2:a65536]) Is Nothing Then
[b2:c65536].ClearContents
If Target = "" Then Exit Sub
For a = 2 To [sayfa2!a65536].End(3).Row
If Sheets("sayfa2").Cells(a, "a") = Target Then
c = c + 1
If WorksheetFunction.CountIf([b:b], Sheets("sayfa2").Cells(a, "b")) = 0 Then
Cells(c + 1, "b") = Sheets("sayfa2").Cells(a, "b")
End If
End If
Next
End If
If Not Intersect(Target, [b2:b65536]) Is Nothing Then
[c2:c65536].ClearContents
If Target = "" Then Exit Sub
For a = 2 To [sayfa2!a65536].End(3).Row
If Sheets("sayfa2").Cells(a, "b") = Target Then
c = c + 1
If WorksheetFunction.CountIf([c:c], Sheets("sayfa2").Cells(a, "c")) = 0 Then
Cells(c + 1, "c") = Sheets("sayfa2").Cells(a, "c")
End If
End If
Next
End If
End Sub
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Count > 1 Then Exit Sub
c = 0
If Not Intersect(Target, [a2:a65536]) Is Nothing Then
[b2:c65536].ClearContents
If Target = "" Then Exit Sub
For a = 2 To [sayfa2!a65536].End(3).Row
If Sheets("sayfa2").Cells(a, "a") = Target Then
c = c + 1
If WorksheetFunction.CountIf([b:b], Sheets("sayfa2").Cells(a, "b")) = 0 Then
Cells(c + 1, "b") = Sheets("sayfa2").Cells(a, "b")
End If
End If
Next
[b2:b65536].Sort Key1:=[b2], Order1:=xlAscending, Header:=xlGuess, _
OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom, _
DataOption1:=xlSortNormal
End If
If Not Intersect(Target, [b2:b65536]) Is Nothing Then
[c2:c65536].ClearContents
If Target = "" Then Exit Sub
For a = 2 To [sayfa2!a65536].End(3).Row
If Sheets("sayfa2").Cells(a, "b") = Target Then
c = c + 1
If WorksheetFunction.CountIf([c:c], Sheets("sayfa2").Cells(a, "c")) = 0 Then
Cells(c + 1, "c") = Sheets("sayfa2").Cells(a, "c")
End If
End If
Next
[c2:c65536].Sort Key1:=[c2], Order1:=xlAscending, Header:=xlGuess, _
OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom, _
DataOption1:=xlSortNormal
End If
End Sub