Sub test()
Dim t, s, i&, j&, n&
With Sheets("Feuil1")
t = Range("c:c").Resize(Cells(Rows.Count, "c").End(xlUp).Row)
ReDim v(1 To 3, 1 To 1)
n = 1: v(1, n) = "SENDER": v(2, n) = "DEVISE": v(3, n) = "MONTANT"
For i = 1 To UBound(t)
s = Split(t(i, 1), Chr(10))
If IsArray(s) Then
For j = LBound(s) To UBound(s)
If s(j) Like "SENDER : *" Then
n = n + 1
ReDim Preserve v(1 To 3, 1 To n)
v(1, n) = Mid(s(j), Len("SENDER : "), 999)
v(2, n) = Mid(s(j + 2), Len("DEVISE : "), 999)
v(3, n) = CDbl(Replace(Mid(s(j + 1), Len("MONTANT : "), 999), ".", ","))
End If
Next j
End If
Next i
End With
With Sheets("RES")
.Columns("a:c").Clear
.Range("a1").Resize(UBound(v, 2), 3) = Application.Transpose(v)
.Range("c1").Resize(UBound(v, 2)).NumberFormat = "0.00"
.Select
End With
End Sub