Il me faut un boucle qui facilitera l'opération suivante :
For i = 2 To d
TCD.Cells(i, 2).Value = Int(Application.WorksheetFunction.SumIf(Sheets(ActiveSheet.Index - 3).Range("I6:I65536"), TCD.Cells(i, 1), Sheets(ActiveSheet.Index - 3).Range("K6:K65536")))
TCD.Cells(i, 3).Value = Int(Application.WorksheetFunction.SumIf(Sheets(ActiveSheet.Index - 2).Range("I6:I65536"), TCD.Cells(i, 1), Sheets(ActiveSheet.Index - 2).Range("K6:K65536")))
TCD.Cells(i, 4).Value = Int(Application.WorksheetFunction.SumIf(Sheets(ActiveSheet.Index - 1).Range("I6:I65536"), TCD.Cells(i, 1), Sheets(ActiveSheet.Index - 1).Range("K6:K65536")))
TCD.Cells(i, 5).Value = Int(Application.WorksheetFunction.SumIf(Sheets(ActiveSheet.Index - 0).Range("I6:I65536"), TCD.Cells(i, 1), Sheets(ActiveSheet.Index - 0).Range("K6:K65536")))
Next