bonjour
Je suis débutant en vba et je cherche une fonction pour calculer les moyennes par lignes
J'ai essayé cela mais sans succès
Sub Moyennes()
Dim m As Integer
For Each r In Rows("2:25") ' pour chaque ligne
Debug.Print r.Row
m = Application.WorksheetFunction.Average(Cells(r.Row, 2), Cells(r.Row, 26))
Cells(r.Row, 29) = m
Next
End Sub