Bonjour à tous les deux,
Alors j'ai opté pour le Step 2, nombre pair ou impair n'a pas d'importance pour mon fichier.
Par contre je n'ai pas réussi à regrouper les 2 boucles étant donné qu'après un "To" on ne peut rien ajouter.
Merci
For y = 71 To 86 Step 2
If WB.Cells(x, y) <> 0 Then
For j = Range("Tableau_jus").Row To Range("Tableau_jus").Row + 8
If WT.Cells(j, 1) = "" Then
WT.Cells(j, 1) = WB.Cells(8, y)
WT.Cells(j, 3) = WB.Cells(x, y)
Exit For
End If
Next
End If
Next
For y = 89 To 1211 Step 2
If WB.Cells(x, y) <> 0 Then
For j = Range("Tableau_jus").Row To Range("Tableau_jus").Row + 8
If WT.Cells(j, 1) = "" Then
WT.Cells(j, 1) = WB.Cells(8, y)
WT.Cells(j, 3) = WB.Cells(x, y)
Exit For
End If
Next
End If
Next