Dim txt As Variant Dim m As Integer Dim l As Integer 'split reparti chaque ligne dans un tableau variant txt = Split(Me.RichTextBox1.Text, vbCrLf) For m = 0 To UBound(txt) 'len retourne le nombre de caractères l = Len(txt(m)) 'attention au problème d'indice m et m+1 MsgBox "Ligne n°" + Str(m + 1) + " = " + txt(m) + " ; contient " + Str(l) + " caractères" Next m