Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Dim x As Long 'déclare la variable x
Dim lf As Long 'déclare la variable lf (Ligne de Fin de couleur jaune)
For x = 5 To 65536
If Cells(x, 2).Interior.ColorIndex <> 6 Then Exit For
Next x
lf = x - 1
If Target.Count > 1 Then Exit Sub
If LCase(Target.Value) = "clic" Then
ligne = Target.Row
For x = ligne To 5 Step -1
If LCase(Cells(x, 4).Value) = "clic" Then ligne = ligne - 1
Next x
ligne = ligne + 1
Range("B" & ligne & ":B" & lf & ",D3").Select
End If
End Sub