bonjour,
J'ai un tableau de largeur variable. Avec ce code
With Sheets("Feuil3")
dercol = .[IV1].End(xlToLeft).Column
For Lig = 2 To .UsedRange.Rows.Count
.Cells(Lig, dercol + 3) = Application.Sum(.Cells(Lig, 1).Resize(1, dercol))
Next Lig
End With
je fais la somme des lignes dans la premiere colonne vide situé apres le tableau mais comment faire
la somme de cette colonne dans sa première cellule non vide?
là je cafouille,
range ("dercol"). End(XlUp).offset(1,0)=Application.Sum(cells(/lig,dercol)
J'ai un tableau de largeur variable. Avec ce code
With Sheets("Feuil3")
dercol = .[IV1].End(xlToLeft).Column
For Lig = 2 To .UsedRange.Rows.Count
.Cells(Lig, dercol + 3) = Application.Sum(.Cells(Lig, 1).Resize(1, dercol))
Next Lig
End With
je fais la somme des lignes dans la premiere colonne vide situé apres le tableau mais comment faire
la somme de cette colonne dans sa première cellule non vide?
là je cafouille,
range ("dercol"). End(XlUp).offset(1,0)=Application.Sum(cells(/lig,dercol)