Function CAformat(cells_c As Range) As String
'je dois récapituler en D1 en gardant tous les formats des cellules
Dim tmp, ch As String, ad As Range, i As Long, j As Long
tmp = cells_c.Value
y = Application.Caller.Address
a = cells_c.Count
For Each c In cells_c
ch = ch & c.Value & " "
Next c
CAformat = ch 'ici
i = 1
For j = 0 To a - 1
With Range(y).Characters(i, Len(tmp(j + 1, 1)) + 1).Font
.Color = cells_c.Cells(1).Offset(j).Font.Color
.Bold = cells_c.Cells(1).Offset(j).Font.Bold
.Italic = cells_c.Cells(1).Offset(j).Font.Italic
End With
i = i + Len(tmp(j + 1, 1)) + 1
Next j
'CAformat= LE RESULTAT EN D1 DEVRAIT ËTRE ICI ?????
End Function