Bonjour,
C'est une grosse galère sur 2016 car CONCAT ne prend les arguments que 1 par 1, il n'accepte pas les matrices.
J'avais écrit un UDF pour pallier cela, vous pouvez voir si ça fonctionne en remplaçant joindre.texte par cette fonction (CONCATVBA).
Public Function CONCATVBA(sep As String, _
Optional ByVal ignoreEmpty As Boolean = True, _
Optional ByVal textes As Variant)
CONCATVBA = vbNullString
If IsMissing(textes) Then Exit Function
For Each txt In textes
If ignoreEmpty Then
If txt <> vbNullString Then
CONCATVBA = CONCATVBA & sep & txt
End If
Else
CONCATVBA = CONCATVBA & sep & txt
End If
Next txt
End Function