- Katılım
- 5 Aralık 2007
- Mesajlar
- 635
- Excel Vers. ve Dili
- Office 2007
DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Private Sub CommandButton1_Click()
Dim i, j, c As Integer
Dim son, ss, sut As Integer
Application.ScreenUpdating = False
son = Range("B" & Rows.Count).End(3).Row
ss = Range("F" & Rows.Count).End(3).Row
sut = Cells(2, Columns.Count).End(xlToLeft).Column
Range(Range("G3"), Cells(ss, sut)).ClearContents
For i = 2 To son
For j = 2 To ss
For c = 7 To sut
If Cells(i, 2) = Cells(j, "F") And Cells(2, c) = Cells(i, 3) Then
Cells(j, c) = Cells(j, c) + Cells(i, 4)
End If
Next c
Next j
Next i
Application.ScreenUpdating = True
End Sub
Cells(2, "F").End(2).Column