Bonjour Papi, bonjour le forum,
Pas sûr d'avoir bien compris... Essaie comme ça :
Sub exemple()
Dim DL As Integer
DL = Cells(Application.Rows.Count, "A").End(xlUp).Row
For I = 2 To DL
If Cells(I, "A") >= 6.3 And Cells(I, "A") <= 6.6 Then
Cells(I, "A").Interior.ColorIndex = 4
'Cells(I+1, "A").Select 'pas très conseillé
Else
Cells(I, "A").Interior.ColorIndex = 3
Cells(1, Application.Columns.Count).Value = I 'on stocke la ligne dans la dernière colonne
UserForm1.Show
End If
Next I
End Sub
et
Private Sub Workbook_Open()
ActiveSheet.Cells(ActiveSheet.Cells(1, Application.Columns.Count).Value, 1).Select
End Sub