1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
| With Sheets("bdd")
For I = 0 To 14
lig1 = .Columns("A").Find(What:=Me.ListBox1.Value, LookIn:=xlValues).Row
.Cells(lig1 + I, "B").Resize(15, 1).Value = Application.Transpose(Array(A3))
.Cells(lig1 + I, "C").Resize(15, 1).Value = Application.Transpose(Array(A7))
.Cells(lig1 + I, "D").Resize(15, 1).Value = Application.Transpose(Array(Format(Date1, "mm/dd/yyyy")))
.Cells(lig1 + I, "G").Resize(15, 1).Value = Application.Transpose(Array(comptage))
.Cells(lig1 + I, "H").Resize(15, 1).Value = Application.Transpose(Array(Motif))
.Cells(lig1 + I, "I").Resize(15, 1).Value = Application.Transpose(Array(TK_ILD))
.Cells(lig1 + I, "J").Resize(15, 1).Value = Application.Transpose(Array(Préventif))
.Cells(lig1 + I, "K").Resize(15, 1).Value = Application.Transpose(Array(Format(Date2, "mm/dd/yyyy")))
.Cells(lig1 + I, "L").Resize(15, 1).Value = Application.Transpose(Array(Lieu))
.Cells(lig1 + I, "Y").Resize(15, 1).Value = Application.Transpose(Array(Date3))
If CheckBox17 = True Then .Cells(lig1 + I, "F") = "1" Else .Cells(lig1 + I, "F") = ""
Next I |