Sub construire(mazone, emp)
Dim table(7)
With Sheets("planif")
For lg = 1 To mazone.Rows.Count
For c = 1 To mazone.Columns.Count
table(0) = emp.Value
table(1) = .Cells(mazone.Row + lg, mazone.Column)
table(3) = .Cells(mazone.Row + lg, mazone.Column + c)
Set d = .Cells(mazone.Row, mazone.Column + c)
table(5) = Format(d, "dddd dd mmmm yyyy")
table(2) = Format(d, "hh:mm:ss")
If table(3) = "" Then table(4) = 0 Else table(4) = 0.5
table(6) = Format(d, "mmmm")
With Sheets("BdD")
For n = 0 To UBound(table)
.Cells(lignedonnées - 1, n + 1) = table(n)
Next
Call compilation(lignedonnées - 1)
lignedonnées = lignedonnées + 1
End With
Next
Next
Sheets("BdD").Range("$a$" & lignedonnées - 2 & ":$g$" & lignedonnées - 2).Interior.Color = RGB(55, 555, 55)
End With
End Sub