Sub Séquences()
Dim TDon(), LD&, TRés(), LR&, CR&
TDon = Feuil1.[B9].Resize([B1000000].End(xlUp).Row - 8).Value
ReDim TRés(1 To 6, 1 To 20)
For LD = 1 To UBound(TDon, 1)
If TDon(LD, 1) Like "SEQUENCE*" Then
LR = LR + 1: CR = 1: TRés(LR, CR) = TDon(LD, 1)
ElseIf Not TDon(LD, 1) Like "SENS*" Then
If LR > 0 Then CR = CR + 1: TRés(LR, CR) = TDon(LD, 1)
End If
Next LD
Feuil1.[A2].Resize(UBound(TRés, 1), UBound(TRés, 2)).Value = TRés
End Sub
BonjourBonsoir.
Cette procédure :
VB:Sub Séquences() Dim TDon(), LD&, TRés(), LR&, CR& TDon = Feuil1.[B9].Resize([B1000000].End(xlUp).Row - 8).Value ReDim TRés(1 To 6, 1 To 20) For LD = 1 To UBound(TDon, 1) If TDon(LD, 1) Like "SEQUENCE*" Then LR = LR + 1: CR = 1: TRés(LR, CR) = TDon(LD, 1) ElseIf Not TDon(LD, 1) Like "SENS*" Then If LR > 0 Then CR = CR + 1: TRés(LR, CR) = TDon(LD, 1) End If Next LD Feuil1.[A2].Resize(UBound(TRés, 1), UBound(TRés, 2)).Value = TRés End Sub