Hello
C'est un fichier de pointage des absences
Je ne comprend pas d'où viens mon erreur <<L'indice n'appartient pas à la sélection>>
La variable T plante sur la feuille 16 mais je vois pas pourquoi
Si joint un bout de code + le fichier
Merci d'avance
Private Sub Worksheet_Activate()
Dim I, T, E, F, G As Integer
E = 0
F = 0
G = 0
For T = 4 To 17
For I = 5 To 36
E = E + Sheets(T).Range("E" & CStr(I)).Value
F = F + Sheets(T).Range("F" & CStr(I)).Value
G = G + Sheets(T).Range("G" & CStr(I)).Value
Next
Next
Range("E" & CStr(I)).Value = E
Range("F" & CStr(I)).Value = F
Range("G" & CStr(I)).Value = G
End Sub