Private Sub Process() Dim count As Integer Dim str As String Dim datarec As datarecord Dim element As String count = 0 tableout.Clear() str = table(0) For Each element In table If element str Then ' au lieu de IS count += 1 Else datarec.chaine = str datarec.count = count tableout.Add(datarec) count = 1 ' 1 au lieu de 0 str = element End If Next datarec.chaine = str datarec.count = count tableout.Add(datarec) End Sub
For x = 0 To UBound(Tab1) ici ListBox1.Items.Add(Tab1(x)) Next