rebonjour avoriaz, salut José
Parfois l'informatique me laisse dans un grand désarroi, et me pousserai à vérifier le coéfficient de pénétration de mon micro dans l'air.
Autre solution :
Public Sub vev()
Dim c As Range
Range("d2:f8").ClearContents
For Each c In Range("b2:b" & Range("b65536").End(xlUp).Row)
If IsNumeric(c) Then Range("d" & Range("d65536").End(xlUp).Row + 1) = c.Value
If Len(c) > 4 And Len(c) < 8 Then Range("f" & Range("f65536").End(xlUp).Row + 1) = c.Value
If Len(c) = 21 Then Range("e" & Range("e65536").End(xlUp).Row + 1) = c.Value
Next c
Range("d2:d" & Range("d65536").End(xlUp).Row).Sort Key1:=Range("D2"), Order1:=xlAscending, Header:=xlGuess
Range("e2:e" & Range("e65536").End(xlUp).Row).Sort Key1:=Range("e2"), Order1:=xlAscending, Header:=xlGuess
Range("f2:f" & Range("f65536").End(xlUp).Row).Sort Key1:=Range("f2"), Order1:=xlAscending, Header:=xlGuess
End Sub
moins propre mais plus efficace.
Avoriaz, je ne suis pas allé voir ce qu'avais fait José, mais par expérience du forum, je te conseillerai d'aller y jeté un oeil (pas les deux tu n'y verrais plus rien).
Salut
Hervé