Bonjour les copains,
Pourriez-vous me dire ce qui ne va pas dans le Range de ma fonction SUM svp ?
Dim r As Long, s As Long
r = Range("F65000").End(xlUp).Offset(13, -1).Row
s = Range("A65000").End(xlUp).Offset(2, 4).Select
Range("A65000").End(xlUp).Offset(1, 0).Select
For Each cell In Selection
If cell = "" Then cell.Offset(1, 4) = Application.Sum(Range("E" & r & ":E" & s))
Merci et à bientôt
Pourriez-vous me dire ce qui ne va pas dans le Range de ma fonction SUM svp ?
Dim r As Long, s As Long
r = Range("F65000").End(xlUp).Offset(13, -1).Row
s = Range("A65000").End(xlUp).Offset(2, 4).Select
Range("A65000").End(xlUp).Offset(1, 0).Select
For Each cell In Selection
If cell = "" Then cell.Offset(1, 4) = Application.Sum(Range("E" & r & ":E" & s))
Merci et à bientôt