- Katılım
- 10 Ekim 2011
- Mesajlar
- 128
- Excel Vers. ve Dili
- Excel 2007
DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Sub conqueror()
Dim i As Integer
Dim j As Integer
Dim son As Integer, say As Integer
Dim s1, s2 As Worksheet
Dim a As Integer, b As Integer, c As Integer
Set s1 = Sheets("GİDER")
Set s2 = Sheets("ÖZET")
son = s1.Range("A" & Rows.Count).End(3).Row
say = s2.Range("A" & Rows.Count).End(3).Row
For i = 2 To son
For j = 3 To say
For a = 2 To 5
For b = 6 To 9
For c = 10 To 13
If UCase(Format(s1.Cells(i, 1), "mmmm")) = s2.Cells(j, 1) And _
s1.Cells(i, 3) = s2.Cells(2, a) And _
s1.Cells(i, 2) = s2.Cells(1, 2) Then
s2.Cells(j, a) = s1.Cells(i, 5)
End If
If UCase(Format(s1.Cells(i, 1), "mmmm")) = s2.Cells(j, 1) And _
s1.Cells(i, 3) = s2.Cells(2, b) And _
s1.Cells(i, 2) = s2.Cells(1, "F") Then
s2.Cells(j, b) = s1.Cells(i, 5)
End If
If UCase(Format(s1.Cells(i, 1), "mmmm")) = s2.Cells(j, 1) And _
s1.Cells(i, 3) = s2.Cells(2, c) And _
s1.Cells(i, 2) = s2.Cells(1, "J") Then
s2.Cells(j, c) = s1.Cells(i, 5)
End If
Next c
Next b
Next a
Next j
Next i
End Sub