- Katılım
- 26 Eylül 2007
- Mesajlar
- 12
- Excel Vers. ve Dili
- xp
office 2010
DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Option Explicit
Sub aylık_topla()
Dim S1 As Worksheet, S2 As Worksheet
Dim STR As Long, STN As Long
Set S1 = Sheets("FARK")
For STN = 4 To S1.Cells(3, Columns.Count).End(xlToLeft).Column
If S1.Cells(3, STN) <> Empty Then
Set S2 = Sheets(S1.Cells(3, STN).Text)
For STR = 4 To S1.Range("B" & Rows.Count).End(xlUp).Row
If S1.Cells(STR, "B") <> Empty Then
S2.Range("A3:L" & Rows.Count).AutoFilter 3, S1.Cells(STR, "B")
S2.Range("A3:L" & Rows.Count).AutoFilter 4, ">=" & CDbl(S1.Cells(1, STN)), _
xlAnd, "<=" & CDbl(S1.Cells(2, STN))
S1.Cells(STR, STN) = WorksheetFunction.Subtotal(9, _
S2.Range("K:K"))
S2.Range("A3:L" & Rows.Count).AutoFilter
End If: Next: End If: Next
End Sub
Sayın asi_kral çok teşekkür ederim