J'ai essayé les deux codes suivant :
Sub selec()
Dim i As Integer
i = 1
While i < 3192
If Cells(i, 3) <> "" Then
Range ("Cells(i,1):Cells(i,3)")
End If
Wend
End Sub
et
End Sub
Sub selection()
Dim i As Integer
i = 1
NombreLignes = 3192
While i < 3192
If Cells(i, 3) <> "" Then
lignes = lignes & i & ":" & i & ","
End If
i = i + 1
Wend
lignes = Left(lignes, Len(lignes) - 1)
Sheets("Feuil1").Range(lignes).Select
End Sub
Et j'ai à chaque fois une erreur "variable non définie" au niveau de la toute première ligne ( Sub selection() ). Pourrais-tu me dire où est le soucis stp ?