Dim Lig As Long, Arret As Boolean
With Sheets("Programme")
Do
Lig = Lig + 1
If .Range("A" & Lig) Like "T008008" Then Arret = True
Cells.Find(What:="T0", After:=ActiveCell, LookIn:=xlFormulas, LookAt _
:=xlPart, SearchOrder:=xlByColumns, SearchDirection:=xlNext, MatchCase:= _
True, SearchFormat:=False).Activate
ActiveCell.Offset(1, 0).Select
Selection.Insert Shift:=xlDown
ActiveCell.Value = var4
ActiveCell.Offset(1, 0).Select
Selection.Insert Shift:=xlDown
ActiveCell.Value = var6
Loop While Not Arret
End With
End Sub
C'est vrai que j'ai mis peu d'info.
Je mets la macro au complet avec ce que tu as fait mais elle ne s'arrête pas au T008008 :(