1 2 3 4 5 6 7 8 9 10 11 12 13
| Sub Report()
Dim DerLig As Long, i As Long, Lig As Long
Application.ScreenUpdating = False
DerLig = Range("A" & Rows.Count).End(xlUp).Row
Lig = 3
For i = 3 To DerLig Step 6
Cells(Lig, "E") = Format(Cells(i, "A") * 1, "dd/mm/yyyy")
Cells(Lig, "F") = Format(Cells(i, "A") * 1, "hh:mm")
Range(Cells(Lig, "G"), Cells(Lig, "L")) = Application.Transpose(Range(Cells(i, "B"), Cells(i + 5, "B")))
Cells(Lig, "M") = Application.WorksheetFunction.Average(Range(Cells(Lig, "G"), Cells(Lig, "L")))
Lig = Lig + 1
Next i
End Sub |
Partager