merci Dan oui maintenant ca marche mais je voudrai rajouté ca a ma boucle si tu peux m'aidez stp
voila le code que j'ai fait mais il me fait pas ce que je t'est représenter dans l'image
i = 15 'valEUr de Ma première colonne du tableau
Application.Wait Time + TimeSerial(0, 0, 2) 'attends 10 sec
Do Until Range("T7") <> "" Or Arret = True 'conditionne la boucle jusqu'à la dernière colonne de ton tableau
If i > 15 Then Cells(7, i - 1).Value = Range("B1") 'mettre la valeur de B1 dans les cellule precedente
Cells(7, i).Value = Range("B1").Value 'mets ta valeurs dans la cellule de ton tableau
'boucle famille aléatoire tunel
If Range("P7") <> "" Then Range("P8") = Range("O8")
If Range("Q7") <> "" Then Range("Q8") = Range("P8")
Range("P8") = Range("O8")
If Range("R7") <> "" Then Range("R8") = Range("Q8")
Range("Q8") = Range("P8")
If Range("S7") <> "" Then Range("S8") = Range("R8")
Range("R8") = Range("Q8")
If Range("T7") <> "" Then Range("T8") = Range("S8")
If Range("O7") <> "" Then
Set plage = Range("H3:H" & Range("H" & Rows.Count).End(xlUp).Row)
Randomize
lg = Int((WorksheetFunction.CountA(plage) - 1 + 1) * Rnd + 1)
Range("O8") = Range("H" & lg + 13)
End If
'Range("O8").Value = Range("C13").Offset(Nb_Boucle, 0).Value
i = i + 1 'prochaine colonne
Application.Wait Time + TimeSerial(0, 0, 2) 'attends 10 sec
DoEvents
Loop
je te laisse voir l'image ou je t'explique ce que je veux faire
mercii