Bonjour,
Je suis débutante en VBA et je souhaite trier une liste excel.
Dans le tableau , j'aimerai supprimer les lignes qui ne contiennent pas les texte suivant:
Carc. 1B
Carc. 1A
Repr. 1B
Repr. 1A
Muta. 1B
Muta. 1A
Est ce possible avec une macro ?
J'ai essayer la macro suivante mais cela m'efface tout
Sub Supp()
Dim I As Integer
For I = [A65000].End(xlUp).Row To 1 Step -1
If Cells(I, 1).Find("Carc. 1B") Is Nothing Or _
Cells(I, 1).Find("Carc. 1A") Is Nothing Or _
Cells(I, 1).Find("Repr. 1B") Is Nothing Or _
Cells(I, 1).Find("Repr. 1A") Is Nothing Or _
Cells(I, 1).Find("Muta. 1B") Is Nothing Or _
Cells(I, 1).Find("Muta. 1A") Is Nothing Then Rows(I).Delete
Next I
End Sub
Merci par avance de votre aide
Elodie