- Katılım
- 24 Temmuz 2007
- Mesajlar
- 726
- Excel Vers. ve Dili
- Excel 2010 tr
DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Sub sirala()
Range("M2:N65536").Select
ActiveWorkbook.Worksheets("veri").Sort.SortFields.Add Key:=Range("M2"), _
SortOn:=xlSortOnValues, Order:=xlAscending, DataOption:=xlSortNormal
With ActiveWorkbook.Worksheets("veri").Sort
.SetRange Range("M2:N76")
.Header = xlNo
.MatchCase = False
.Orientation = xlTopToBottom
.SortMethod = xlPinYin
.Apply
End With
End Sub
Sub FisNoBul()
Application.ScreenUpdating = False
Call sirala
Range("C2:C65536").ClearContents
ss = Range("a65536").End(3).Row
For i = 2 To ss
adet = Application.WorksheetFunction.CountIf(Range("m2:m65536"), Cells(i, "a").Value)
If adet > 0 Then
Columns("M:M").Select
satir = Selection.Find(What:=Cells(i, "a"), After:=ActiveCell, LookIn:=xlFormulas, LookAt _
:=xlPart, SearchOrder:=xlByColumns, SearchDirection:=xlNext, MatchCase:= _
False, SearchFormat:=False).Row
FisNo = ""
For j = satir To satir + adet - 1
FisNo = FisNo & Cells(j, "n") & ","
Next j
Cells(i, "c") = FisNo
End If
adet = ""
Next i
End Sub