Bonjour, salut i20100
Une fonction perso à tester :
Public Function ConcatSep(Plage As Range, Optional Sep As String = ",")
Dim Cell As Range, Res As String
For Each Cell In Plage
If Res = "" Then Res = Cell Else Res = Res & Sep & Cell
Next Cell
ConcatSep = Res
End Function
A appeler comme ceci dans le code (ou directement dans le fichier) :
Range("B" & x).FormulaR1C1 = "=ConcatSep(R[1]C:R[" & Compteur & "]C)"