Sayın yıldırım
Kodlarınızı aşağıdaki gibi yazın
Private Sub CommandButton1_Click()
Application.ScreenUpdating = False
Set Sİ = Sheets("İCMAL")
Set WF = WorksheetFunction
Sİ.[B9:B10,B11:C9,C10:C11,D9

10,D11:E9,E10:E11,F9:F10,F11:G9,G10:G11].ClearContents
For X = 1 To 6
Sheets(X).Select
If Sheets(X).[A3] <> "" Then
Sheets(X).[A3].AutoFilter Field:=2, Criteria1:=">=" & CLng(CDate(Sİ.[A2])), Operator:=xlAnd, Criteria2:="<=" & CLng(CDate(Sİ.[B2]))
If X = 1 Then
Sİ.[B9] = WF.Subtotal(3, Sheets(X).[E3:E65536])
Sİ.[B10] = WF.Subtotal(9, Sheets(X).[E3:E65536])
ElseIf X = 2 Then
Sİ.[C9] = WF.Subtotal(3, Sheets(X).[E3:E65536])
Sİ.[C10] = WF.Subtotal(9, Sheets(X).[E3:E65536])
ElseIf X = 3 Then
Sİ.[D9] = WF.Subtotal(3, Sheets(X).[E3:E65536])
Sİ.[D10] = WF.Subtotal(9, Sheets(X).[E3:E65536])
ElseIf X = 4 Then
Sİ.[E9] = WF.Subtotal(3, Sheets(X).[E3:E65536])
Sİ.[E10] = WF.Subtotal(9, Sheets(X).[E3:E65536])
ElseIf X = 5 Then
Sİ.[F9] = WF.Subtotal(3, Sheets(X).[E3:E65536])
Sİ.[F10] = WF.Subtotal(9, Sheets(X).[E3:E65536])
ElseIf X = 6 Then
Sİ.[G9] = WF.Subtotal(3, Sheets(X).[E3:E65536])
Sİ.[G10] = WF.Subtotal(9, Sheets(X).[E3:E65536])
End If
Sheets(X).[A4].AutoFilter
End If
Next
Sheets("icmal").Select
Sİ.[B9] = "=IF(DAY(DATE(YEAR(R[-25]C[-1]),MONTH(R[-25]C[-1])+1,DAY(R[-25]C[-1]))-1)=31,(31-2.5)*20,(30-2)*20)"
Sİ.[B10] = "=SUM(st1!R[-7]C[3]:R[1990]C[3])/60"
Sİ.[B11] = "=B9-B10"
Sİ.[C9] = "=IF(DAY(DATE(YEAR(R[-25]C[-1]),MONTH(R[-25]C[-1])+1,DAY(R[-25]C[-1]))-1)=31,(31-2.5)*20,(30-2)*20)"
Sİ.[C10] = "=SUM(st2!R[-7]C[2]:R[1990]C[2])/60"
Sİ.[C11] = "=C9-C10"
Sİ.[D9] = "=IF(DAY(DATE(YEAR(R[-25]C[-1]),MONTH(R[-25]C[-1])+1,DAY(R[-25]C[-1]))-1)=31,(31-2.5)*20,(30-2)*20)"
Sİ.[D10] = "=SUM(st3!R[-7]C[1]:R[1990]C[1])/60"
Sİ.[D11] = "=D9-D10"
Sİ.[E9] = "=IF(DAY(DATE(YEAR(R[-25]C[-1]),MONTH(R[-25]C[-1])+1,DAY(R[-25]C[-1]))-1)=31,(31-2.5)*20,(30-2)*20)"
Sİ.[E10] = "=SUM(st4!R[-7]C:R[1990]C)/60"
Sİ.[E11] = "=E9-E10"
Sİ.[F9] = "=IF(DAY(DATE(YEAR(R[-25]C[-1]),MONTH(R[-25]C[-1])+1,DAY(R[-25]C[-1]))-1)=31,(31-2.5)*20,(30-2)*20)"
Sİ.[F10] = "=SUM(st5!R[-7]C[-1]:R[1990]C[-1])/60"
Sİ.[F11] = "=F9-F10"
Sİ.[G9] = "=IF(DAY(DATE(YEAR(R[-25]C[-1]),MONTH(R[-25]C[-1])+1,DAY(R[-25]C[-1]))-1)=31,(31-2.5)*20,(30-2)*20)"
Sİ.[G10] = "=SUM(st6!R[-7]C[-2]:R[1990]C[-2])/60"
Sİ.[G11] = "=G9-G10"
Sİ.Select
Set Sİ = Nothing
Set WF = Nothing
Application.ScreenUpdating = True
MsgBox "BİLGİLER AKTARILMIŞTIR.", vbInformation
End Sub
Daha bilgili bir hocam belki kısa bir yoldan halledebilir ama benim buulduğum çözüm bu oldu inşallah işinizi görür