Sub For_X_to_Next_Colonne()
firstline = 7
lastline = 27
accountcol = 5
testligne = 1
testcolonne = 1
testmontant = 1
'Boucle société
i = 8
Sheets("Feuil1").Select
Do While (Cells(5, i).Value <> "")
j = firstline
Do While (j <= lastline)
company = Cells(5, i).Value
compte = Cells(j, 4).Value
If montant = 0 Then
Loop
montant = Cells(j, i).Value
Sheets("Feuil3").Select
Cells(testligne, 1).Value = StringFormat("=""{0}""", company)
testligne = testligne + 1
Cells(testcolonne, 2).Value = compte
testcolonne = testcolonne + 1
Cells(testmontant, 3) = montant
testmontant = testmontant + 1
j = j + 1
Sheets("Feuil1").Select
Loop
i = i + 1
Loop
End Sub