Function WrappWithAjustEntireWord3(ByVal T$, ByVal L&)
On Error Resume Next
tbp = Split(T, vbLf)
For a = 0 To UBound(tbp)
i = 0
Do Until i >= Len(tbp(a))
i = i + L 'incrémentation numerique
If i > Len(tbp(a)) Then Exit Do
If Mid(tbp(a), i, 1) = " " Then
Mid(tbp(a), i, 1) = "*"
Else
i = InStrRev(Mid(tbp(a), 1, i - 1), " "): Mid(tbp(a), i, 1) = "*"
If Err.Number > 0 Then WrappWithAjustEntireWord3 = "": Exit Function
End If
Loop
Next a
If Err.Number = 0 Then temoins = True: WrappWithAjustEntireWord3 = Replace(Join(tbp, vbCrLf), "*", vbCrLf)
End Function