1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| Sub Test()
For x = 2 To Worksheets.Count - 1
Dim iR&, i&, k&
iR = Worksheets(x).Cells(Rows.Count, "A").End(xlUp).Row
iR = iR + 1
Worksheets(x).Rows(iR).Insert
Worksheets(x).Cells(iR, "A").FormulaR1C1 = Date
Worksheets(x).Cells(iR, "B").FormulaR1C1 = Sheets("DONNEES").Cells("1", "A").FormulaR1C1
Worksheets(x).Cells(iR, "D").FormulaR1C1 = Sheets("DONNEES").Cells("1", "B").FormulaR1C1
Worksheets(x).Cells(iR, "E").FormulaR1C1 = Worksheets(x).Cells(iR - 1, "E").FormulaR1C1
Next
End Sub |
Partager