sorunum çözülmüştür.Katkılarından dolayı sayın COST_CONTROL üstadıma çok tşk ederim dosya ektedir isteyen arkadaşlar inceleyebilir ve baya fayalı bir bbilgi aktarımı herkesin işine yarar bence.
kod aşağıdadır
Private Sub CommandButton1_Click()
Application.ScreenUpdating = False
Set Sİ = Sheets("İCMAL")
Set WF = WorksheetFunction
Sİ.[B6:B9,B11:B14,B16:B19,B21:B24,B26:B29,B31:B34].ClearContents
For X = 1 To 6
Sheets(X).Select
If Sheets(X).[B5] <> "" Then
Sheets(X).[A4].AutoFilter Field:=2, Criteria1:=">=" & CLng(CDate(Sİ.[A2])), Operator:=xlAnd, Criteria2:="<=" & CLng(CDate(Sİ.[B2]))
If X = 1 Then
Sİ.[B6] = WF.Subtotal(3, Sheets(X).[I5:I65536])
Sİ.[B7] = WF.Subtotal(9, Sheets(X).[J5:J65536])
Sİ.[B8] = WF.Subtotal(9, Sheets(X).[K5:K65536])
Sİ.[B9] = WF.Subtotal(9, Sheets(X).[L5:L65536])
ElseIf X = 2 Then
Sİ.[B11] = WF.Subtotal(3, Sheets(X).[I5:I65536])
Sİ.[B12] = WF.Subtotal(9, Sheets(X).[J5:J65536])
Sİ.[B13] = WF.Subtotal(9, Sheets(X).[K5:K65536])
Sİ.[B14] = WF.Subtotal(9, Sheets(X).[L5:L65536])
ElseIf X = 3 Then
Sİ.[B16] = WF.Subtotal(3, Sheets(X).[I5:I65536])
Sİ.[B17] = WF.Subtotal(9, Sheets(X).[J5:J65536])
Sİ.[B18] = WF.Subtotal(9, Sheets(X).[K5:K65536])
Sİ.[B19] = WF.Subtotal(9, Sheets(X).[L5:L65536])
ElseIf X = 4 Then
Sİ.[B21] = WF.Subtotal(3, Sheets(X).[I5:I65536])
Sİ.[B22] = WF.Subtotal(9, Sheets(X).[J5:J65536])
Sİ.[B23] = WF.Subtotal(9, Sheets(X).[K5:K65536])
Sİ.[B24] = WF.Subtotal(9, Sheets(X).[L5:L65536])
ElseIf X = 5 Then
Sİ.[B26] = WF.Subtotal(3, Sheets(X).[I5:I65536])
Sİ.[B27] = WF.Subtotal(9, Sheets(X).[J5:J65536])
Sİ.[B28] = WF.Subtotal(9, Sheets(X).[K5:K65536])
Sİ.[B29] = WF.Subtotal(9, Sheets(X).[L5:L65536])
ElseIf X = 6 Then
Sİ.[B31] = WF.Subtotal(3, Sheets(X).[I5:I65536])
Sİ.[B32] = WF.Subtotal(9, Sheets(X).[J5:J65536])
Sİ.[B33] = WF.Subtotal(9, Sheets(X).[K5:K65536])
Sİ.[B34] = WF.Subtotal(9, Sheets(X).[L5:L65536])
End If
Sheets(X).[A4].AutoFilter
End If
Next
Sİ.Select
Set Sİ = Nothing
Set WF = Nothing
Application.ScreenUpdating = True
MsgBox "BİLGİLER AKTARILMIŞTIR.", vbInformation
End Sub