DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
[B]Sub SIRALA()[/B]
[J3:N12].ClearContents: sayı = 1
For sat = 3 To 12
For sut = 10 To 14
For satt = 3 To 14
For sutt = 3 To 7
If WorksheetFunction.CountIf([C3:G12], "<=" & Cells(satt, sutt)) = sayı Then
Cells(sat, sut) = Cells(satt, sutt)
sayı = sayı + 1: GoTo 10
End If
Next
Next
10: Next
Next: MsgBox "İşlem tamamlandı.", vbInformation, "Ömer BARAN"
[B]End Sub[/B]
Sub sırala()
Dim x, j, s, i
Set j = CreateObject("Scripting.Dictionary")
Range("J3:N12").ClearContents
Application.ScreenUpdating = False
deger1 = Mid(Cells(3, 3).Value, 1, 2)
UserForm1.ListView1.ListItems.Clear
UserForm1.ListView1.ColumnHeaders.Clear
UserForm1.ListView1.View = lvwReport
UserForm1.ListView1.Gridlines = True
UserForm1.ListView1.FullRowSelect = True
UserForm1.ListView1.ColumnHeaders.Add , , "BENZERSİZLER", 200
For Each x In Range("c3:G12")
If x.Value <> "" Then
'If IsNumeric(x.Value) = True Then
If Not j.exists(x.Value) Then
j.Add x.Value, Nothing
deger2 = Mid(x.Value, 3, Len(x.Value))
UserForm1.ListView1.ListItems.Add , , Format(deger2, "000000000000000")
End If
'End If
End If
Next x
UserForm1.ListView1.Sorted = True
UserForm1.ListView1.SortKey = 0
UserForm1.ListView1.SortOrder = lvwAscending
UserForm1.ListView1.Sorted = False
basla1 = Timer
bekle1 = 1
While Timer < basla1 + bekle1
DoEvents
Wend
Set Sh = Sheets(ActiveSheet.Name)
yer = ActiveSheet.Name
sat1 = 3
n = 9
For r = 1 To UserForm1.ListView1.ListItems.Count
n = n + 1
Sheets(yer).Cells(sat1, n).Value = deger1 & UserForm1.ListView1.ListItems(r).Text * 1
If n = 14 Then n = 9: sat1 = sat1 + 1
Next r
MsgBox "işlem tamam"
Application.ScreenUpdating = True
End Sub