sub majcheque()
sheets("Recap1").range("A1:B1").entirecolumn.clear ' effacement des 2 colonnes
dim i as integer, j as integer, k as integer, drapeau as boolean,ligne as long
ligne = 1
for i = 1 to 14 ' Pour les 14 premiers jours
with sheets(format(i,"00")) ' en utilisant la feuille du mois
drapeau = false ' je remets le drapeau à false
for j = 44 to 50 ' je passe en revue les lignes
For k = 13 to 25 step 3 ' Les colonnes, step 3 -> 3 cellules par montant
if .cells(j,k)>0 then ' j'ai un montant
if drapeau = false then ' je n'ai pas mis la date
sheets("Recap1").range("A" & ligne) = .range("O1") ' mise en place de la date
drapeau = true ' pour ne pas metre la date à toute les lignes
end if
sheets("Recap1").range("B" & ligne) = .cells(j,k) ' Mise en place du montant
ligne = ligne + 1
end if
next k
next j
end with
next i
end sub