Existe t'il un code VBA permettant de sélectionner toutes les lignes a partir de la ligne 2 (Contenant un code Ean) sans les lignes commençant par #N/A
Sub Select_lines
Dim i as Long
For i = 2 To Cells(Rows.Count, 1).End(xlUp).Row
If Cells(i, 1).Text = "#N/A" Then
Rows("2:" & i - 1).Select
Exit For
End If
Next i
End Sub
Sub Select_lines
Dim i as Long
For i = 2 To Cells(Rows.Count, 1).End(xlUp).Row
If i> 2 and IsError(Cells(i, 1)) Then
Rows("2:" & i - 1).Select
Exit For
End If
Next i
End Sub
Normalement mon code fonctionne mais avec la variante de 3GB, il fonctionne mieux parce qu'il a prévu l'exception de si il n'y a qu'une ligne de remplie dans le tableau.