Bonjour,
mon problème porte sur cette partie de la macro : .Cells(iRow, 12)
Set sWk = Worksheets(sFlag)
'
With sWk
iRow = .Range("A" & Rows.Count).End(xlUp).Row + 1
.Cells(iRow, 1) = Cells(10, 3) 'date début
.Cells(iRow, 2) = Cells(10, 9) 'date fin
.Cells(iRow, 3) = Cells(7, 9) 'exécutant
.Cells(iRow, 4) = Cells(11, 3) 'heure début
.Cells(iRow, 5) = Cells(11, 9) 'heure fin
.Cells(iRow, 6).FormulaLocal = "=E" & iRow & " - D" & iRow
.Cells(iRow, 7) = Cells(14, 1) 'Constat de la panne
.Cells(iRow, 9) = Cells(16, 1) 'Détail de la panne
.Cells(iRow, 10) = Cells(14, 9) 'Nombre de meule
.Cells(iRow, 11) = Cells(5, 9) 'Visa
.Cells(iRow, 12) = Cells(33, 1) & vbLf & " " & Cells(33, 2) & vbLf & " Réf : " & Cells(33, 9) & vbLf & " Qts : " & Cells(33, 13) & vbLf & vbLf & Cells(34, 1) & vbLf & " " & Cells(34, 2) & vbLf & " Réf : " & Cells(34, 9) & vbLf & " Qts : " & Cells(34, 13) & vbLf & vbLf & Cells(35, 1) & vbLf & " " & Cells(35, 2) & vbLf & " Réf : " & Cells(35, 9) & vbLf & " Qts : " & Cells(35, 13) & vbLf & vbLf & Cells(36, 1) & vbLf & " " & Cells(36, 2) & vbLf & " Réf : " & Cells(36, 9) & vbLf & " Qts : " & Cells(36, 13) & vbLf & vbLf & Cells(37, 1) & vbLf & " " & Cells(37, 2) & vbLf & " Réf : " & Cells(37, 9) & vbLf & " Qts : " & Cells(37, 13) & vbLf & vbLf & Cells(38, 1) & vbLf & " " & Cells(38, 2) & vbLf & " Réf : " & Cells(38, 9) & vbLf & " Qts : " & Cells(38, 13) & vbLf & vbLf & Cells(39, 1) & vbLf & " " & Cells(39, 2) & vbLf & " Réf : " & Cells(39, 9) & vbLf & " Qts : " & Cells(39, 13)
Le but étant de pouvoir recopier uniquement les lignes qui ne sont pas vide.
et là je bloque .....
Merci de votre aide
KissCool