DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Sub yerlestir()
Set s1 = Sheets("VERİ SAYFASI")
With Sheets("A SINIFI")
.[b3:b37] = s1.[c2:c36].Value 'kurs no
.[c3:c37] = s1.[j2:j36].Value 'sicil no
.[d3:d37] = s1.[b2:b36].Value 'ad soyad
.[g3:g37] = s1.[c36:c71].Value
.[h3:h37] = s1.[j36:j71].Value
.[i3:i37] = s1.[b36:b71].Value
End With
With Sheets("B SINIFI")
.[b3:b37] = s1.[c72:c107].Value
.[c3:c37] = s1.[j72:j107].Value
.[d3:d37] = s1.[b72:b107].Value
.[g3:g37] = s1.[c108:c142].Value
.[h3:h37] = s1.[j108:j142].Value
.[i3:i37] = s1.[b108:b142].Value
End With
With Sheets("C SINIFI")
.[b3:b37] = s1.[c143:c177].Value
.[c3:c37] = s1.[j143:j177].Value
.[d3:d37] = s1.[b143:b177].Value
.[g3:g37] = s1.[c178:c212].Value
.[h3:h37] = s1.[j178:j212].Value
.[i3:i37] = s1.[b178:b212].Value
End With
End Sub
Dim s1 As Object
Private Sub CommandButton1_Click()
With Sheets("A SINIFI")
.[b3:d37,g3:i37] = ""
.[b3:b37] = s1.[c2:c36].Value 'kurs no
.[c3:c37] = s1.[j2:j36].Value 'sicil no
.[d3:d37] = s1.[b2:b36].Value 'ad soyad
.[g3:g37] = s1.[c36:c71].Value
.[h3:h37] = s1.[j36:j71].Value
.[i3:i37] = s1.[b36:b71].Value
End With
End Sub
Private Sub CommandButton2_Click()
With Sheets("B SINIFI")
.[b3:d37,g3:i37] = ""
.[b3:b37] = s1.[c72:c107].Value
.[c3:c37] = s1.[j72:j107].Value
.[d3:d37] = s1.[b72:b107].Value
.[g3:g37] = s1.[c108:c142].Value
.[h3:h37] = s1.[j108:j142].Value
.[i3:i37] = s1.[b108:b142].Value
End With
End Sub
Private Sub CommandButton3_Click()
With Sheets("C SINIFI")
.[b3:d37,g3:i37] = ""
.[b3:b37] = s1.[c143:c177].Value
.[c3:c37] = s1.[j143:j177].Value
.[d3:d37] = s1.[b143:b177].Value
.[g3:g37] = s1.[c178:c212].Value
.[h3:h37] = s1.[j178:j212].Value
.[i3:i37] = s1.[b178:b212].Value
End With
End Sub
Private Sub Worksheet_Activate()
Set s1 = Sheets("VERİ SAYFASI")
End Sub
Sub AKTAR()
Dim a, aa, b, bb, c, cc As Integer
Set sh = Sheets("VERİ SAYFASI")
son = [b65536].End(3).Row
a = 2: aa = 2: b = 2: bb = 2: c = 2: cc = 2
Sheets(Array("A SINIFI", "B SINIFI", "C SINIFI")).Select
[b3:e37,g3:j37].ClearContents
sh.Select
For i = 2 To son
With Sheets(Cells(i, "K") & " SINIFI")
'A SINIFI
If sh.Cells(i, "K") = "A" And a > 36 Then
aa = aa + 1
.Cells(aa, "G") = sh.Cells(i, "C")
.Cells(aa, "H") = sh.Cells(i, "J")
.Cells(aa, "I") = sh.Cells(i, "B")
ElseIf sh.Cells(i, "K") = "A" And a <= 36 Then
a = a + 1
.Cells(a, "B") = sh.Cells(i, "C")
.Cells(a, "C") = sh.Cells(i, "J")
.Cells(a, "D") = sh.Cells(i, "B")
End If
'B SINIFI
If sh.Cells(i, "K") = "B" And b > 36 Then
bb = bb + 1
.Cells(aa, "G") = sh.Cells(i, "C")
.Cells(aa, "H") = sh.Cells(i, "J")
.Cells(aa, "I") = sh.Cells(i, "B")
ElseIf sh.Cells(i, "K") = "B" And b <= 36 Then
b = b + 1
.Cells(b, "B") = sh.Cells(i, "C")
.Cells(b, "C") = sh.Cells(i, "J")
.Cells(b, "D") = sh.Cells(i, "B")
End If
'C SINIFI
If sh.Cells(i, "K") = "C" And c > 36 Then
cc = cc + 1
.Cells(cc, "G") = sh.Cells(i, "C")
.Cells(cc, "H") = sh.Cells(i, "J")
.Cells(cc, "I") = sh.Cells(i, "B")
ElseIf sh.Cells(i, "K") = "C" And c <= 36 Then
c = c + 1
.Cells(c, "B") = sh.Cells(i, "C")
.Cells(c, "C") = sh.Cells(i, "J")
.Cells(c, "D") = sh.Cells(i, "B")
End If
End With
Next
End Sub
Sub AKTAR()
Dim a, aa, b, bb, c, cc As Integer 'Değişkenleri tanımla
Set sh = Sheets("VERİ SAYFASI") 'VERİ SAYFASINI sh olarak tanımla
son = [b65536].End(3).Row 'son hücreyi bul
a = 2: aa = 2: b = 2: bb = 2: c = 2: cc = 2 'sayaçlar 2.satırdan başlasın
Sheets(Array("A SINIFI", "B SINIFI", "C SINIFI")).Select
[b3:e37,g3:j37].ClearContents ' A, B, C SINIFLARINI SEÇ b3:e37,g3:j37 ARALIKLARI SİL
sh.Select
For i = 2 To son 'son hücre kadar dön
With Sheets(Cells(i, "K") & " SINIFI") 'K sütundaki hücre değerine SINIFI kelimesini ekle
've sayfa ismi olarak tanımla.Bu sayfa ile birlikte aşağıdakileri yap.
'A SINIFI
If sh.Cells(i, "K") = "A" And a > 36 Then 'K sütunundaki ilgili hücre "A" ya eşitse ve sayaç a, 36 dan büyükse
aa = aa + 1 'aa yı bir arttır.
.Cells(aa, "G") = sh.Cells(i, "C") 'Veri sayfasındaki C sütunundaki ilgili hücreyi,
'Sheets(Cells(i, "K") & " SINIFI") şeklinde tespit edilmiş sayfada
'C sütunda sayaç tarafından belirlenmiş satıra eşitle
.Cells(aa, "H") = sh.Cells(i, "J") 'aynısı
.Cells(aa, "I") = sh.Cells(i, "B") 'aynısı
ElseIf sh.Cells(i, "K") = "A" And a <= 36 Then 'K sütunundaki ilgili hücre "A" ya eşitse ve sayaç a, 36 dan küçükse
a = a + 1 'a yı bir arttır.
.Cells(a, "B") = sh.Cells(i, "C") 'Veri sayfasındaki C sütunundaki ilgili hücreyi,
'Sheets(Cells(i, "K") & " SINIFI") şeklinde tespit edilmiş sayfada
'B sütunda sayaç tarafından belirlenmiş satıra eşitle
.Cells(a, "C") = sh.Cells(i, "J") 'aynısı
.Cells(a, "D") = sh.Cells(i, "B") 'aynısı
End If